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

Conversation

javiernuber
Copy link
Contributor

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? yes
Tests pass? yes
Fixed tickets #12658
License MIT
Doc PR

@@ -160,6 +160,7 @@ public function getLocale()
*/
public function setFallbackLocale($locales)
{
trigger_error('The setFallbackLocale method was removed in 3.0. You should use the new method setFallbackLocales.', E_USER_DEPRECATED);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should rather read like "The setFallbackLocale() method is deprecated since version 2.6 and will be removed in 3.0. Use setFallbackLocales() instead." (see http://symfony.com/doc/current/contributing/code/conventions.html#deprecations). You will probably have to change 2.6 to the version number where the setFallbackLocales() method was introduced.

*
* @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.',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you move the whole expression on one line? Thanks.

@fabpot
Copy link
Member

fabpot commented Nov 30, 2014

Thank you @javiernuber.

@fabpot fabpot closed this in 03aa6f7 Nov 30, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants