Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/Symfony/Component/Translation/Translator.php
Original file line number Diff line number Diff line change
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