Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Serializer] Fix ignoring objects that only implement DenormalizableInterface #50521

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

Merged
merged 1 commit into from
Jun 1, 2023

Conversation

spideyfusion
Copy link

Q A
Branch? 6.3
Bug fix? yes
New feature? no
Deprecations? no
Tickets N/A
License MIT
Doc PR N/A

When the #49291 optimization got introduced, the DenormalizableInterface type was left out of the CustomNormalizer normalizer's getSupportedTypes implementation.

This prevents us for example, implementing custom deserialization logic for API objects where we can't describe all deserialization rules via attributes.

@nicolas-grekas
Copy link
Member

Thank you @spideyfusion.

@nicolas-grekas nicolas-grekas merged commit 7e01a32 into symfony:6.3 Jun 1, 2023
@alexostrovskyferratum
Copy link

@nicolas-grekas when I install 6.3.0 of symfony/serializer this fix is not present. can you add it or create new release?

@xabbuh
Copy link
Member

xabbuh commented Jun 17, 2023

This fix will be present in the next patch release 6.3.1. We regularly publish them once a month.

@fabpot fabpot mentioned this pull request Jun 26, 2023
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.

5 participants