You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feature #14120 Removed deprecation in translation component (saro0h)
This PR was merged into the 3.0-dev branch.
Discussion
----------
Removed deprecation in translation component
| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | ~
| License | MIT
| Doc PR | ~
Commits
-------
2220b90 Removed deprecation in translation component
Copy file name to clipboardExpand all lines: src/Symfony/Component/Translation/Translator.php
-18Lines changed: 0 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -147,24 +147,6 @@ public function getLocale()
147
147
return$this->locale;
148
148
}
149
149
150
-
/**
151
-
* Sets the fallback locale(s).
152
-
*
153
-
* @param string|array $locales The fallback locale(s)
154
-
*
155
-
* @throws \InvalidArgumentException If a locale contains invalid characters
156
-
*
157
-
* @deprecated since version 2.3, to be removed in 3.0. Use setFallbackLocales() instead.
158
-
*
159
-
* @api
160
-
*/
161
-
publicfunctionsetFallbackLocale($locales)
162
-
{
163
-
trigger_error('The '.__METHOD__.' method is deprecated since version 2.3 and will be removed in 3.0. Use the setFallbackLocales() method instead.', E_USER_DEPRECATED);
0 commit comments