This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component
Fabien Potencier a640c30df2 feature #32415 [Translation] deprecate passing a null locale (Simperfit)
This PR was merged into the 4.4 branch.

Discussion
----------

[Translation] deprecate passing a null locale

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| BC breaks?    | no     <!-- see https://symfony.com/bc -->
| Deprecations? | yes <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->
| Fixed tickets | none <!-- #-prefixed issue number(s), if any -->
| License       | MIT
| Doc PR        | not needed <!-- required for new features -->

<!--
Replace this notice by a short README for your feature/bugfix. This will help people
understand your PR and can be used as a start for the documentation.

Additionally (see https://symfony.com/roadmap):
 - Bug fixes must be submitted against the lowest maintained branch where they apply
   (lowest branches are regularly merged to upper ones so they get the fixes too).
 - Features and deprecations must be submitted against branch 4.4.
 - Legacy code removals go to the master branch.
-->

According to the discussion in https://github.com/symfony/symfony/pull/32386#discussion_r300590343 it seems that allowing null here was not the right thing to do, so we are deprecating this behaviour.

Commits
-------

088615ddaf [Translation] deprecate passing a null locale
2019-07-08 08:50:08 +02:00
..
Asset Merge branch '4.3' into 4.4 2019-05-30 18:10:19 +02:00
BrowserKit Merge branch '4.3' into 4.4 2019-06-11 17:42:17 +02:00
Cache [FrameworkBundle] Allow creating chained cache pools by providing several adapters 2019-07-04 19:09:10 +02:00
Config minor #32382 Fix phpdocs (fabpot) 2019-07-05 06:53:43 +02:00
Console renamed the ErrorHandler component to ErrorCatcher 2019-06-27 19:38:50 +02:00
CssSelector updated version to 4.4 2019-05-09 09:23:25 +02:00
Debug [Debug] Fix CHANGELOG after ErrorCatcher renaming 2019-06-28 16:44:50 +02:00
DependencyInjection Deprecated passing Parameter instances as class name to Definition. 2019-07-05 21:06:26 +02:00
DomCrawler [FrameworkBundle] Allow to use the BrowserKit assertions with Panther and API Platform's test client 2019-07-04 08:46:07 +02:00
Dotenv Merge branch '4.3' into 4.4 2019-06-26 11:30:56 +02:00
ErrorCatcher [Mime] add check for openssl when using SMime 2019-07-05 09:42:08 +02:00
EventDispatcher Merge branch '4.3' into 4.4 2019-06-27 18:48:03 +02:00
ExpressionLanguage Merge branch '4.3' into 4.4 2019-05-30 18:10:19 +02:00
Filesystem [Filesystem] depreacte calling isAbsolutePath with a null 2019-07-03 13:25:24 +02:00
Finder Merge branch '4.3' into 4.4 2019-06-28 15:17:39 +02:00
Form feature #31528 [Validator] Add a Length::$allowEmptyString option to reject empty strings (ogizanagi) 2019-07-03 15:15:57 +02:00
HttpClient [HttpClient] Add $response->toStream() to cast responses to regular PHP streams 2019-07-05 07:37:18 +02:00
HttpFoundation [HttpFoundation] Accept must take the lead for Request::getPreferredFormat() 2019-07-04 09:46:50 +02:00
HttpKernel Improving the request/response format autodetection 2019-07-03 12:46:41 -04:00
Inflector Merge branch '4.3' into 4.4 2019-05-30 15:50:22 +02:00
Intl feature #32402 [Intl] Exclude root language (ro0NL) 2019-07-08 07:53:32 +02:00
Ldap [Ldap] Document the new exceptions thrown by the code 2019-07-02 09:12:04 +02:00
Lock Merge branch '4.3' into 4.4 2019-07-03 19:15:45 +02:00
Mailer removed @experimental annotations 2019-06-29 18:43:50 +02:00
Messenger Deprecated passing Parameter instances as class name to Definition. 2019-07-05 21:06:26 +02:00
Mime [Mime] add check for openssl when using SMime 2019-07-05 09:42:08 +02:00
OptionsResolver Merge branch '4.3' into 4.4 2019-06-13 13:05:05 +02:00
Process [Process] Allow writing portable "prepared" command lines 2019-06-23 21:19:36 +02:00
PropertyAccess [PropertyAccess] Adds entries to CHANGELOG and UPGRADE 2019-07-03 14:34:50 +02:00
PropertyInfo [PropertyInfo] add static cache to ContextFactory 2019-06-28 14:35:26 +02:00
Routing [Routing] Deprecate RouteCollection::addPrefix(null). 2019-06-28 10:23:33 +02:00
Security Merge branch '4.3' into 4.4 2019-07-02 16:37:50 +02:00
Serializer removed @experimental annotations 2019-06-29 18:43:50 +02:00
Stopwatch Merge branch '4.3' 2019-05-27 12:42:03 +02:00
Templating Merge branch '4.3' into 4.4 2019-05-30 18:10:19 +02:00
Translation [Translation] deprecate passing a null locale 2019-07-08 08:40:36 +02:00
Validator feature #32265 [Validator] deprecate non-string constraint violation codes (xabbuh) 2019-07-03 15:25:50 +02:00
VarDumper renamed the ErrorHandler component to ErrorCatcher 2019-06-27 19:38:50 +02:00
VarExporter Merge branch '4.3' into 4.4 2019-06-26 11:30:56 +02:00
WebLink Allow Symfony 5.0 2019-05-28 17:53:17 +02:00
Workflow Merge branch '4.3' into 4.4 2019-07-03 19:15:45 +02:00
Yaml Allow Symfony 5.0 2019-05-28 17:53:17 +02:00