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

[Validator] drop type-hints for properties where the ´Type´ constraint is used #20059

Merged
merged 1 commit into from
Jul 23, 2024

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented Jul 23, 2024

partially revert #18362 as having the native type-hints prevents the Type constraint to be applied in a meaningful way (if the types don't match, PHP will error before)

@carsonbot carsonbot added this to the 6.4 milestone Jul 23, 2024
@OskarStark OskarStark changed the title drop type-hints for properties where the Type constraint is used drop type-hints for properties where the ´Type´ constraint is used Jul 23, 2024
@carsonbot carsonbot changed the title drop type-hints for properties where the ´Type´ constraint is used [Validator] drop type-hints for properties where the ´Type´ constraint is used Jul 23, 2024
@javiereguiluz javiereguiluz merged commit ab44ec8 into symfony:6.4 Jul 23, 2024
3 checks passed
@javiereguiluz
Copy link
Member

Thank you Christian!

I liked the comment you added in the description, so while merging I added a short paragraph with that information. See d7071c7

@xabbuh xabbuh deleted the pr-18362 branch July 23, 2024 14:20
@xabbuh
Copy link
Member Author

xabbuh commented Jul 23, 2024

good idea Javier 👍 thanks for doing it

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