Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #12658 Add a deprecation note about Translator's setFallbackLocale... #12671

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/Symfony/Component/Translation/Translator.php
Expand Up @@ -154,12 +154,14 @@ public function getLocale()
*
* @throws \InvalidArgumentException If a locale contains invalid characters
*
* @deprecated since 2.3, to be removed in 3.0. Use setFallbackLocales() instead.
* @deprecated Deprecated since version 2.3, to be removed in 3.0. Use setFallbackLocales() instead.
*
* @api
*/
public function setFallbackLocale($locales)
{
trigger_error('The setFallbackLocale() method is deprecated since version 2.3 and will be removed in 3.0. Use setFallbackLocales() instead.', E_USER_DEPRECATED);

$this->setFallbackLocales(is_array($locales) ? $locales : array($locales));
}

Expand Down