Skip to content

Commit 2669016

Browse files
committed
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
2 parents 517e669 + 2220b90 commit 2669016

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

src/Symfony/Component/Translation/Translator.php

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -147,24 +147,6 @@ public function getLocale()
147147
return $this->locale;
148148
}
149149

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-
public function setFallbackLocale($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);
164-
165-
$this->setFallbackLocales(is_array($locales) ? $locales : array($locales));
166-
}
167-
168150
/**
169151
* Sets the fallback locales.
170152
*

0 commit comments

Comments
 (0)