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] Try all possible denormalization route with union types when ALLOW_EXTRA_ATTRIBUTES=false #45861
Conversation
41f9034
to
1d65cef
Compare
Hey! I think @Th3Mouk has recently worked with this code. Maybe they can help review this? Cheers! Carsonbot |
src/Symfony/Component/Serializer/Normalizer/AbstractObjectNormalizer.php
Outdated
Show resolved
Hide resolved
Hello there, |
This PR is ready for review. |
…when ALLOW_EXTRA_ATTRIBUTES=false
Thank you @T-bond. |
…tor (Gwemox) This PR was merged into the 4.4 branch. Discussion ---------- [Serializer] Fix denormalization union types with constructor | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #46396 | License | MIT Fix bug when deserialize union types with constructor. Before that, `MissingConstructorArgumentsException` was thrown even if another type matched. Is similar to #45861 Commits ------- 33fb153 [Serializer] Fix denormalization union types with constructor
I found a similar bug, (I think this is a bug, but it is possible, it is an intended behaviour) to my previous report.