-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Serializer] Add deprecation notices #18583
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
[Serializer] Add deprecation notices #18583
Conversation
👍 |
This should be applied on 2.8 to me. |
@nicolas-grekas why in 2.8 only if it was planned to be removed since 2.3? |
Should have done this PR a long time ago. We can't add a deprecation in a patch release, so this should be deprecated in 3.1 and removed in 4.0. |
@jvasseur but you have to consider that the corresponding code has already been removed from 3.0. That's why this should go on 2.8 to me: earlier would break the not-in-patch-release constraint, and 2.8 is really the branch were we missed adding the notices while we removed the code on 3.0. |
AFAICS this code is still in 3.0 :/ https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Serializer/Serializer.php#L65 |
The property is still in 3.0, but not the code that read from it in case someone was filling the cache manually (it was lost in a merge). |
@jvasseur that's what you removed from #17140 right? But the issue is that it's still in 3.0 as
@nicolas-grekas I'm not sure to understand why this would break the not-in-patch-release constraint. But as the code is still present in 3.0 should this be added to master or 3.0 instead? |
@theofidry in #17140, I removed the code writing into the normalizer cache but not the code reading from it (https://github.com/symfony/symfony/blob/2.3/src/Symfony/Component/Serializer/Serializer.php#L232-L235) in case someone was manually filling the cache. My plan was to add the deprecation in 3.1 (next minor release) and remove the property in 4.0 |
good to me on master |
Closing in favour of #18588 then. |
This PR was squashed before being merged into the 3.1-dev branch (closes #18588). Discussion ---------- [Serializer] Add deprecation notices | Q | A | ------------- | --- | Branch? | master | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | yes | Tests pass? | yes | Fixed tickets | #17140 | License | MIT | Doc PR | none As discussed in #18583, add deprecation notices to `master` instead. Commits ------- d3063ed [Serializer] Add deprecation notices
Since #17140 (de)normalizerCache are not used anymore and according to this comment this should have been deprecated since then.