Skip to content
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] Fix denormalization union types with constructor #46765

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

@carsonbot carsonbot commented Jun 25, 2022

Hey!

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

Cheers!

Carsonbot

@nicolas-grekas nicolas-grekas removed this from the 4.4 milestone Jun 26, 2022
@nicolas-grekas nicolas-grekas added this to the 6.2 milestone Jun 26, 2022
@nicolas-grekas nicolas-grekas removed this from the 6.2 milestone Jun 26, 2022
@nicolas-grekas nicolas-grekas added this to the 4.4 milestone Jun 26, 2022
@nicolas-grekas
Copy link
Member

@nicolas-grekas nicolas-grekas commented Jun 26, 2022

Thank you @Gwemox.

@nicolas-grekas nicolas-grekas merged commit 1b2ab75 into symfony:4.4 Jun 26, 2022
8 of 10 checks passed
@fabpot fabpot mentioned this pull request Jun 26, 2022
@fabpot fabpot mentioned this pull request Jun 26, 2022
@fabpot fabpot mentioned this pull request Jun 26, 2022
@fabpot fabpot mentioned this pull request 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.

None yet

3 participants