Skip to content

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
@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