Skip to content

[Serializer] Fix denormalization union types with constructor #46765

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 26, 2022

Conversation

Gwemox
Copy link
Contributor

@Gwemox Gwemox commented Jun 24, 2022

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

@Gwemox Gwemox changed the title [Serializer] Fix denormalization union type with constructor [Serializer] Fix denormalization union types with constructor Jun 24, 2022
@carsonbot
Copy link

Hey!

I think @jeroennoten has recently worked with this code. Maybe they can help review this?

Cheers!

Carsonbot

@nicolas-grekas nicolas-grekas modified the milestones: 4.4, 6.2 Jun 26, 2022
@nicolas-grekas
Copy link
Member

Thank you @Gwemox.

@nicolas-grekas nicolas-grekas merged commit 1b2ab75 into symfony:4.4 Jun 26, 2022
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.

3 participants