-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Serializer] Marking some Normalizer classes as final #49950
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
Conversation
Hey! Thanks for your PR. You are targeting branch "6.3" but it seems your PR description refers to branch "6.3 for features". Cheers! Carsonbot |
src/Symfony/Component/Serializer/Normalizer/ObjectNormalizer.php
Outdated
Show resolved
Hide resolved
6e733e8
to
2b5f936
Compare
2b5f936
to
ba0fdc0
Compare
…(tucksaun) This PR was merged into the 6.3 branch. Discussion ---------- [Serializer] Mark `ObjectNormalizer` as final for 7.0 | Q | A | ------------- | --- | Branch? | 6.3 | Bug fix? | no | New feature? | no | Deprecations? | yes | Tickets | #49291 (review) | License | MIT | Doc PR | none Extracted from #49950 and related to #49291 (review) Commits ------- b2828e9 [Serializer] Mark ObjectNormalizer as final for 7.0
| Q | A | ------------- | --- | Branch? | 6.3 for features | Bug fix? | no | New feature? | no | Deprecations? | yes | Tickets | symfony#49291 (review) | License | MIT | Doc PR | n/a As mentioned in symfony#49291 (review).
12851dd
to
d976fc5
Compare
Thank you @tucksaun. |
I've got a question about this one, in the docs we say
But now we've marked GetSetMethodNormalizer as final, I assume this will become So what is the new recommended method on that front? And should we update the docs? |
I believe the "including" wording from the sentence is not here to meant "any classes extending GetSetMethodNormalizer or PropertyNormalizer" but more to mention that this statement is true for any classes extending |
As mentioned in #49291 (review).
Making those classes final will allow to get rid of all the
__CLASS__ === static::class
for cacheability checks in 7.0