Skip to content

[Serializer] Do not trigger deprecation when calling from Symfony code #51280

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

Conversation

wouterj
Copy link
Member

@wouterj wouterj commented Aug 5, 2023

Q A
Branch? 6.3
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #51277
License MIT
Doc PR -

@nicolas-grekas
Copy link
Member

Not sure about this, see #51277 (comment)
I'd like to better understand what's going on for the reporter.

@nicolas-grekas
Copy link
Member

Maybe we can improve the deprecation message instead, telling to implement getSupportedTypes() when it's not there (and give the name of the $this class to hint about where this should be added.)

@nicolas-grekas
Copy link
Member

Closing in favor of #51288, thanks for giving this a try!

nicolas-grekas added a commit that referenced this pull request Aug 7, 2023
…icolas-grekas)

This PR was merged into the 6.3 branch.

Discussion
----------

[Serializer] Make deprecation message more actionable

| Q             | A
| ------------- | ---
| Branch?       | 6.3
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #51277
| License       | MIT
| Doc PR        | -

Instead of #51280

Commits
-------

9f86e7f [Serializer] Make deprecation message more actionable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ObjectNormalizer::hasCacheableSupportsMethod()" method is deprecated, use "getSupportedTypes()" instead.
3 participants