You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error messages doesn't change while use construct parameters to change them
This applies to the following parameters: restrictionLevelMessage, invisibleMessage, mixedNumbersMessage, hiddenOverlayMessage
And maybe more
How to reproduce
Create a class with fields that contains NoSuspiciousCharacters constraint.
Change the message text through parameters (for example through: restrictionLevelMessage)
Try to validate this class and see what message have come (I use the suspicious example from symfony doc page: "ѕymfony.com")
For example: UserPersonalDataDto.php
Symfony version(s) affected
6.3.4
Description
Error messages doesn't change while use construct parameters to change them
This applies to the following parameters:
restrictionLevelMessage,
invisibleMessage,
mixedNumbersMessage,
hiddenOverlayMessage
And maybe more
How to reproduce
For example:
UserPersonalDataDto.php
UserController.php
Possible Solution
To change the code of construct of the NoSuspiciousCharacters class from:
to:
Additional Context
No response
The text was updated successfully, but these errors were encountered: