8000 [ObjectMapper] apply conditions to constructor arguments by soyuka · Pull Request #63141 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@soyuka
Copy link
Contributor
@soyuka soyuka commented Jan 20, 2026
Q A
Branch? 7.4
Bug fix? yes
New feature? no
Deprecations? no
Issues Fix #63134
License MIT

This PR enables the use of #[Map(if: ...)] attributes on constructor arguments in the ObjectMapper component. This allows for conditional mapping of constructor parameters see attached issue.

@nicolas-grekas
Copy link
Member

(tests fail 😬 )

@nicolas-grekas
Copy link
Member

Thank you @soyuka.

@nicolas-grekas nicolas-grekas merged commit b93ee45 into symfony:7.4 Jan 26, 2026
3 of 4 checks passed
This was referenced Jan 28, 2026
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

0