Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.6k
[Serializer] Try all possible denormalization route with union types when ALLOW_EXTRA_ATTRIBUTES=false#45861
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Self review done.
Failing tests seems unrelated.
carsonbot commentedMar 27, 2022
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 OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
NorthBlue333 commentedJun 12, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
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 | MITFix bug when deserialize union types with constructor. Before that, `MissingConstructorArgumentsException` was thrown even if another type matched.Is similar to#45861Commits-------33fb153 [Serializer] Fix denormalization union types with constructor
Uh oh!
There was an error while loading.Please reload this page.
I found a similar bug, (I think this is a bug, but it is possible, it is an intended behaviour) to my previous report.