Skip to content

Commit 9a1e4fe

Browse files
authored
Merge branch 'master' into config-allow-dots
2 parents 14d6f78 + a97f8b7 commit 9a1e4fe

File tree

640 files changed

+8016
-2095
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

640 files changed

+8016
-2095
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
| Q | A
22
| ------------- | ---
3-
| Branch? | master / 2.7, 2.8, 3.3, or 3.4 <!-- see comment below -->
3+
| Branch? | master for features / 2.7 up to 4.0 for bug fixes <!-- see below -->
44
| Bug fix? | yes/no
55
| New feature? | yes/no <!-- don't forget to update src/**/CHANGELOG.md files -->
66
| BC breaks? | yes/no
@@ -14,6 +14,5 @@
1414
- Bug fixes must be submitted against the lowest branch where they apply
1515
(lowest branches are regularly merged to upper ones so they get the fixes too).
1616
- Features and deprecations must be submitted against the master branch.
17-
- Please fill in this template according to the PR you're about to submit.
1817
- Replace this comment by a description of what your PR is solving.
1918
-->

.php_cs.dist

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ return PhpCsFixer\Config::create()
88
->setRules(array(
99
'@Symfony' => true,
1010
'@Symfony:risky' => true,
11+
'@PHPUnit48Migration:risky' => true,
12+
'php_unit_no_expectation_annotation' => false, // part of `PHPUnitXYMigration:risky` ruleset, to be enabled when PHPUnit 4.x support will be dropped, as we don't want to rewrite exceptions handling twice
1113
'array_syntax' => array('syntax' => 'long'),
1214
'protected_to_private' => false,
1315
))
@@ -30,16 +32,13 @@ return PhpCsFixer\Config::create()
3032
))
3133
// file content autogenerated by `var_export`
3234
->notPath('Symfony/Component/Translation/Tests/fixtures/resources.php')
33-
// autogenerated xmls
34-
->notPath('Symfony/Component/Console/Tests/Fixtures/application_1.xml')
35-
->notPath('Symfony/Component/Console/Tests/Fixtures/application_2.xml')
36-
// yml
37-
->notPath('Symfony/Component/Yaml/Tests/Fixtures/sfTests.yml')
3835
// test template
3936
->notPath('Symfony/Bundle/FrameworkBundle/Tests/Templating/Helper/Resources/Custom/_name_entry_label.html.php')
4037
// explicit heredoc test
4138
->notPath('Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Resources/views/translation.html.php')
42-
// purposefully invalid JSON
43-
->notPath('Symfony/Component/Asset/Tests/fixtures/manifest-invalid.json')
39+
// explicit trigger_error tests
40+
->notPath('Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/default.phpt')
41+
->notPath('Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/weak.phpt')
42+
->notPath('Symfony/Component/Debug/Tests/DebugClassLoaderTest.php')
4443
)
4544
;

CHANGELOG-4.0.md

Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,149 @@ in 4.0 minor versions.
77
To get the diff for a specific change, go to https://github.com/symfony/symfony/commit/XXX where XXX is the change hash
88
To get the diff between two versions, go to https://github.com/symfony/symfony/compare/v4.0.0...v4.0.1
99

10+
* 4.0.2 (2017-12-15)
11+
12+
* bug #25489 [FrameworkBundle] remove esi/ssi renderers if inactive (dmaicher)
13+
* bug #25502 Fixing wrong class_exists on interface (weaverryan)
14+
* bug #25427 Preserve percent-encoding in URLs when performing redirects in the UrlMatcher (mpdude)
15+
* bug #25480 [FrameworkBundle] add missing validation options to XSD file (xabbuh)
16+
* bug #25487 [Console] Fix a bug when passing a letter that could be an alias (Simperfit)
17+
* bug #25425 When available use AnnotationRegistry::registerUniqueLoader (jrjohnson)
18+
* bug #25474 [DI] Optimize Container::get() for perf (nicolas-grekas)
19+
* bug #24594 [Translation] Fix InvalidArgumentException when using untranslated plural forms from .po files (BjornTwachtmann)
20+
* bug #25233 [TwigBridge][Form] Fix hidden currency element with Bootstrap 3 theme (julienfalque)
21+
* bug #25413 [HttpKernel] detect deprecations thrown by container initialization during tests (nicolas-grekas)
22+
* bug #25408 [Debug] Fix catching fatal errors in case of nested error handlers (nicolas-grekas)
23+
* bug #25330 [HttpFoundation] Support 0 bit netmask in IPv6 (`::/0`) (stephank)
24+
* bug #25378 [VarDumper] Fixed file links leave blank pages when ide is configured (antalaron)
25+
* bug #25410 [HttpKernel] Fix logging of post-terminate errors/exceptions (nicolas-grekas)
26+
* bug #25409 [Bridge/Doctrine] Drop "memcache" type (nicolas-grekas)
27+
* bug #25417 [Process] Dont rely on putenv(), it fails on ZTS PHP (nicolas-grekas)
28+
* bug #25333 [DI] Impossible to set an environment variable and then an array as container parameter (Phantas0s)
29+
* bug #25447 [Process] remove false-positive BC breaking exception on Windows (nicolas-grekas)
30+
* bug #25381 [DI] Add context to service-not-found exceptions thrown by service locators (nicolas-grekas)
31+
* bug #25438 [Yaml] empty lines don't count for indent detection (xabbuh)
32+
* bug #25412 Extend Argon2i support check to account for sodium_compat (mbabker)
33+
* bug #25392 [HttpFoundation] Fixed default user-agent (3.X -> 4.X) (lyrixx)
34+
* bug #25389 [Yaml] fix some edge cases with indented blocks (xabbuh)
35+
* bug #25396 [Form] Fix debug:form command definition (yceruto)
36+
* bug #25398 [HttpFoundation] don't prefix cookies with "Set-Cookie:" (pableu)
37+
* bug #25354 [DI] Fix non-string class handling in PhpDumper (nicolas-grekas, sroze)
38+
* bug #25340 [Serializer] Unset attributes when creating child context (dunglas)
39+
* bug #25325 [Yaml] do not evaluate PHP constant names (xabbuh)
40+
* bug #25380 [FrameworkBundle][Cache] register system cache clearer only if it's used (xabbuh)
41+
* bug #25323 [ExpressionLanguage] throw an SyntaxError instead of an undefined index notice (Simperfit)
42+
* bug #25363 [HttpKernel] Disable inlining on PHP 5 (nicolas-grekas)
43+
* bug #25364 [DependencyInjection] Prevent a loop in aliases within the `findDefinition` method (sroze)
44+
* bug #25337 Remove Exclusive Lock That Breaks NFS Caching (brianfreytag)
45+
46+
* 4.0.1 (2017-12-05)
47+
48+
* bug #25304 [Bridge/PhpUnit] Prefer $_SERVER['argv'] over $argv (ricknox)
49+
* bug #25272 [SecurityBundle] fix setLogoutOnUserChange calls for context listeners (dmaicher)
50+
* bug #25282 [DI] Register singly-implemented interfaces when doing PSR-4 discovery (nicolas-grekas)
51+
* bug #25274 [Security] Adding a GuardAuthenticatorHandler alias (weaverryan)
52+
* bug #25308 [FrameworkBundle] Fix a bug where a color tag will be shown when passing an antislash (Simperfit)
53+
* bug #25278 Fix for missing whitespace control modifier in form layout (kubawerlos)
54+
* bug #25306 [Form][TwigBridge] Fix collision between view properties and form fields (yceruto)
55+
* bug #25305 [Form][TwigBridge] Fix collision between view properties and form fields (yceruto)
56+
* bug #25236 [Form][TwigBridge] Fix collision between view properties and form fields (yceruto)
57+
* bug #25312 [DI] Fix deep-inlining of non-shared refs (nicolas-grekas)
58+
* bug #25309 [Yaml] parse newlines in quoted multiline strings (xabbuh)
59+
* bug #25313 [DI] Fix missing unset leading to false-positive circular ref (nicolas-grekas)
60+
* bug #25268 [DI] turn $private to protected in dumped container, to make cache:clear BC (nicolas-grekas)
61+
* bug #25285 [DI] Throw an exception if Expression Language is not installed (sroze)
62+
* bug #25241 [Yaml] do not eagerly filter comment lines (xabbuh)
63+
* bug #25284 [DI] Cast ids to string, as done on 3.4 (nicolas-grekas, sroze)
64+
* bug #25297 [Validator] Fixed the @Valid(groups={"group"}) against null exception case (vudaltsov)
65+
* bug #25255 [Console][DI] Fail gracefully (nicolas-grekas)
66+
* bug #25264 [DI] Trigger deprecation when setting a to-be-private synthetic service (nicolas-grekas)
67+
* bug #25258 [link] Prevent warnings when running link with 2.7 (dunglas)
68+
* bug #25244 [DI] Add missing deprecation when fetching private services from ContainerBuilder (nicolas-grekas)
69+
* bug #24750 [Validator] ExpressionValidator should use OBJECT_TO_STRING (Simperfit)
70+
* bug #25247 [DI] Fix false-positive circular exception (nicolas-grekas)
71+
* bug #25226 [HttpKernel] Fix issue when resetting DumpDataCollector (Pierstoval)
72+
* bug #25230 Use a more specific file for detecting the bridge (greg0ire)
73+
* bug #25232 [WebProfilerBundle] [TwigBundle] Fix Profiler breaking XHTML pages (tistre)
74+
75+
* 4.0.0 (2017-11-30)
76+
77+
* bug #25220 [HttpFoundation] Add Session::isEmpty(), fix MockFileSessionStorage to behave like the native one (nicolas-grekas)
78+
* bug #25209 [VarDumper] Dont use empty(), it chokes on eg GMP objects (nicolas-grekas)
79+
* bug #25200 [HttpKernel] Arrays with scalar values passed to ESI fragment renderer throw deprecation notice (Simperfit)
80+
* bug #25201 [HttpKernel] Add a better error messages when passing a private or non-tagged controller (Simperfit)
81+
* bug #25155 [DependencyInjection] Detect case mismatch in autowiring (Simperfit, sroze)
82+
* bug #25217 [Dotenv] Changed preg_match flags from null to 0 (deekthesqueak)
83+
* bug #25180 [DI] Fix circular reference when using setters (nicolas-grekas)
84+
* bug #25204 [DI] Clear service reference graph (nicolas-grekas)
85+
* bug #25203 [DI] Fix infinite loop in InlineServiceDefinitionsPass (nicolas-grekas)
86+
* bug #25185 [Serializer] Do not cache attributes if `attributes` in context (sroze)
87+
* bug #25190 [HttpKernel] Keep legacy container files for concurrent requests (nicolas-grekas)
88+
* bug #25182 [HttpFoundation] AutExpireFlashBag should not clear new flashes (Simperfit, sroze)
89+
* bug #25174 [Translation] modify definitions only if the do exist (xabbuh)
90+
* bug #25179 [FrameworkBundle][Serializer] Remove YamlEncoder definition if Yaml component isn't installed (ogizanagi)
91+
* bug #25160 [DI] Prevent a ReflectionException during cache:clear when the parent class doesn't exist (dunglas)
92+
* bug #25163 [DI] Fix tracking of env vars in exceptions (nicolas-grekas)
93+
* bug #25162 [HttpKernel] Read $_ENV when checking SHELL_VERBOSITY (nicolas-grekas)
94+
* bug #25158 [DI] Remove unreachable code (GawainLynch)
95+
* bug #25152 [Form] Don't rely on `Symfony\Component\HttpFoundation\File\File` if http-foundation isn't in FileType (issei-m)
96+
* bug #24987 [Console] Fix global console flag when used in chain (Simperfit)
97+
* bug #25137 Adding checks for the expression language (weaverryan)
98+
* bug #25151 [FrameworkBundle] Automatically enable the CSRF protection if CSRF manager exists (sroze)
99+
* bug #25043 [Yaml] added ability for substitute aliases when mapping is on single line (Michał Strzelecki, xabbuh)
100+
101+
* 4.0.0-RC2 (2017-11-24)
102+
103+
* bug #25146 [DI] Dont resolve envs in service ids (nicolas-grekas)
104+
* bug #25113 [Routing] Fix "config-file-relative" annotation loader resources (nicolas-grekas, sroze)
105+
* bug #25065 [FrameworkBundle] Update translation commands to work with default paths (yceruto)
106+
* bug #25109 Make debug:container search command case-insensitive (jzawadzki)
107+
* bug #25121 [FrameworkBundle] Fix AssetsInstallCommand (nicolas-grekas)
108+
* bug #25102 [Form] Fixed ContextErrorException in FileType (chihiro-adachi)
109+
* bug #25130 [DI] Fix handling of inlined definitions by ContainerBuilder (nicolas-grekas)
110+
* bug #25119 [DI] Fix infinite loop when analyzing references (nicolas-grekas)
111+
* bug #25094 [FrameworkBundle][DX] Display a nice error message if an enabled component is missing (derrabus)
112+
* bug #25100 [SecurityBundle] providerIds is undefined error when firewall provider is not specified (karser)
113+
* bug #25100 [SecurityBundle] providerIds is undefined error when firewall provider is not specified (karser)
114+
* bug #25100 [SecurityBundle] providerIds is undefined error when firewall provider is not specified (karser)
115+
* bug #25097 [Bridge\PhpUnit] Turn "preserveGlobalState" to false by default, revert "Blacklist" removal (nicolas-grekas)
116+
117+
* 4.0.0-RC1 (2017-11-21)
118+
119+
* bug #25077 [Bridge/Twig] Let getFlashes starts the session (MatTheCat)
120+
* bug #25082 [HttpKernel] Disable container inlining when legacy inlining has been used (nicolas-grekas)
121+
* bug #25022 [Filesystem] Updated Filesystem::makePathRelative (inso)
122+
* bug #25072 [Bridge/PhpUnit] Remove trailing "\n" from ClockMock::microtime(false) (joky)
123+
* bug #25069 [Debug] Fix undefined variable $lightTrace (nicolas-grekas)
124+
* bug #25053 [Serializer] Fixing PropertyNormalizer supports parent properties (Christopher Hertel)
125+
* bug #25055 [DI] Analyze setter-circular deps more precisely (nicolas-grekas)
126+
* feature #25056 [Bridge/PhpUnit] Sync the bridge version installed in vendor/ and in phpunit clone (nicolas-grekas)
127+
* bug #25048 Allow EnumNode name to be null (MatTheCat)
128+
* bug #25045 [SecurityBundle] Don't trigger auto-picking notice if provider is set per listener (chalasr)
129+
* bug #25033 [FrameworkBundle] Dont create empty bundles directory by default (ro0NL)
130+
* bug #25037 [DI] Skip hot_path tag for deprecated services as their class might also be (nicolas-grekas)
131+
* bug #25038 [Cache] Memcached options should ignore "lazy" (nicolas-grekas)
132+
* bug #25014 Move deprecation under use statements (greg0ire)
133+
* bug #25030 [Console] Fix ability to disable lazy commands (chalasr)
134+
* bug #25032 [Bridge\PhpUnit] Disable broken auto-require mechanism of phpunit (nicolas-grekas)
135+
* bug #25016 [HttpKernel] add type-hint for the requestType (Simperfit)
136+
* bug #25027 [FrameworkBundle] Hide server:log command based on deps (sroze)
137+
* bug #24991 [DependencyInjection] Single typed argument can be applied on multiple parameters (nicolas-grekas, sroze)
138+
* bug #24983 [Validator] enter the context in which to validate (xabbuh)
139+
* bug #24956 Fix ambiguous pattern (weltling)
140+
* bug #24732 [DependencyInjection] Prevent service:method factory notation in PHP config (vudaltsov)
141+
* bug #24979 [HttpKernel] remove services resetter even when it's an alias (xabbuh)
142+
* bug #24972 [HttpKernel] Fix service arg resolver for controllers as array callables (sroze, nicolas-grekas)
143+
* bug #24971 [FrameworkBundle] Empty event dispatcher earlier in CacheClearCommand (nicolas-grekas)
144+
* security #24995 Validate redirect targets using the session cookie domain (nicolas-grekas)
145+
* security #24994 Prevent bundle readers from breaking out of paths (xabbuh)
146+
* security #24993 Ensure that submitted data are uploaded files (xabbuh)
147+
* security #24992 Namespace generated CSRF tokens depending of the current scheme (dunglas)
148+
* bug #24975 [DomCrawler] Type fix Crawler:: discoverNamespace() (VolCh)
149+
* bug #24954 [DI] Fix dumping with custom base class (nicolas-grekas)
150+
* bug #24952 [HttpFoundation] Fix session-related BC break (nicolas-grekas, sroze)
151+
* bug #24943 [FrameworkBundle] Wire the translation.reader service instead of deprecated translation.loader in commands (ogizanagi)
152+
10153
* 4.0.0-BETA4 (2017-11-12)
11154

12155
* bug #24874 [TwigBridge] Fixed the .form-check-input class in the bs4 templates (vudaltsov)

0 commit comments

Comments
 (0)