Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Serializer] Fix ObjectNormalizer default context with named serializers #60026

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
Mar 26, 2025

Conversation

HypeMC
Copy link
Contributor

@HypeMC HypeMC commented Mar 24, 2025

Q A
Branch? 7.2
Bug fix? yes
New feature? no
Deprecations? no
Issues Fix #59639
License MIT

As mentioned in #59639, the main problem is that arguments have precedence over bindings, and children inherit arguments from their parents.

This PR moves the logic for setting the default context of ObjectNormalizer from the extension to the SerializerPass, where only bindings are used.

@HypeMC HypeMC requested a review from dunglas as a code owner March 24, 2025 04:43
@carsonbot carsonbot added this to the 7.2 milestone Mar 24, 2025
@HypeMC HypeMC force-pushed the fix-context-with-object-normalize branch from 3e641ad to 6dde315 Compare March 24, 2025 04:47
@HypeMC HypeMC force-pushed the fix-context-with-object-normalize branch from 6dde315 to 80d993f Compare March 24, 2025 12:46
@fabpot
Copy link
Member

fabpot commented Mar 26, 2025

Thank you @HypeMC.

@fabpot fabpot merged commit 02161b7 into symfony:7.2 Mar 26, 2025
4 of 11 checks passed
@HypeMC HypeMC deleted the fix-context-with-object-normalize branch March 26, 2025 09:46
@fabpot fabpot mentioned this pull request Mar 28, 2025
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
Morty Proxy This is a proxified and sanitized view of the page, visit original site.