Skip to content

[Hackday][2.7] Added deprecation trigger #12717

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

Closed
wants to merge 1 commit into from
Closed

[Hackday][2.7] Added deprecation trigger #12717

wants to merge 1 commit into from

Conversation

amansilla
Copy link

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

@@ -203,6 +203,11 @@ public function getValuesForChoices(array $choices)
*/
public function getIndicesForChoices(array $choices)
{
trigger_error(
'getIndicesForChoices() is deprecated since version 2.4 and will be removed in 3.0.',
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?

@amansilla
Copy link
Author

@fabpot Done

@@ -203,6 +203,8 @@ public function getValuesForChoices(array $choices)
*/
public function getIndicesForChoices(array $choices)
{
trigger_error('getIndicesForChoices() is deprecated since version 2.4 and will be removed in 3.0.', 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.

please tell about the concerned class, not only method

Copy link
Author

Choose a reason for hiding this comment

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

@nicolas-grekas Do you need the hole class name with namespace included? or just short class name.

@nicolas-grekas
Copy link
Member

👍

@stof
Copy link
Member

stof commented Jan 3, 2015

The format of the message in this PR does not match the format we standardized. Thus, many ChoiceList implementations have been missed in this PR.
Given that #13060 is adding them in all ChoiceList implementation with the standardized message, I'm closing this PR in favor of the other one (will be easier than merging this partial PR and then resolving conflicts when merging the complete one).

@stof stof closed this Jan 3, 2015
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.

4 participants