Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[Serializer] Remove AbstractObjectNormalizer::isAttributeToNormalize#20530
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
fabpot commentedNov 15, 2016
👍 to remove it as done by this PR. |
xabbuh commentedNov 16, 2016
I would vote for deprecating the method to prevent unexpected BC breaks for users of this class. |
fabpot commentedNov 16, 2016
@xabbuh Is it really worth it? |
xabbuh commentedNov 16, 2016
Judging by the name of the method and given the fact that people will use the |
fabpot commentedNov 16, 2016
Ok, fair enough. Let's add a deprecation notice then. |
dunglas commentedNov 16, 2016 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
After a quick search, I wasn't able to find any public project using this method. Regarding the fact that it was introduced in 3.1 (only 6 months ago) and is useless, I really doubt than anybody has used it. |
ro0NL commentedNov 16, 2016 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Maybe add a Imo. we can totally be pragmatic on left-over code from one minor to another. But it should be documented. |
nicolas-grekas commentedNov 23, 2016
👍 on my side for an UPGRADE entry and no deprecation. |
381b731 to63e94b4Comparenicolas-grekas commentedDec 8, 2016
Thank you@dunglas. |
…oNormalize (dunglas)This PR was squashed before being merged into the 3.1 branch (closes#20530).Discussion----------[Serializer] Remove AbstractObjectNormalizer::isAttributeToNormalize| Q | A| ------------- | ---| Branch? | 3.1| Bug fix? | yes| New feature? | no| BC breaks? | unclear| Deprecations? | no| Tests pass? | yes| Fixed tickets | n/a| License | MIT| Doc PR | n/aI've introduced this method by error in#17113. It has been forgotten during a refactoring. It has always been unused, is not covered by our test suite and has never been documented.Technically it's a BC break (because this is a protected method), but I think that it's better to remove it has it has never be intended to be used, it's just a miss. An alternative is to deprecate it and remove it in v4.Commits-------fea18aa [Serializer] Remove AbstractObjectNormalizer::isAttributeToNormalize
Uh oh!
There was an error while loading.Please reload this page.
I've introduced this method by error in#17113. It has been forgotten during a refactoring. It has always been unused, is not covered by our test suite and has never been documented.
Technically it's a BC break (because this is a protected method), but I think that it's better to remove it has it has never be intended to be used, it's just a miss. An alternative is to deprecate it and remove it in v4.