[Validator] Encourage type safety #9979
Labels
actionable
Clear and specific issues ready for anyone to take them.
DX
hasPR
A Pull Request has already been submitted for this issue.
Validator
Milestone
Example provided at https://symfony.com/doc/current/validation/custom_constraint.html#creating-the-validator-itself shows example validation as:
This is a perfectly fine example, but sets a trap creating assumption that
$value
is always a string. I think at minimum we should include:if not even something like
DateTimeValidator
has:WDYT?
The text was updated successfully, but these errors were encountered: