-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
[Validator] Add min and max in both error messages of LengthValidator
#60805
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
Conversation
d18fd05 to
6182584
Compare
min and max in both error messages of LengthValidator
6182584 to
4a539fb
Compare
|
The Tests on 8.2 high-deps are failing because this PR How do I solve this ? |
f51245e to
8df3197
Compare
|
Looks good. I noticed some failures are related to these changes. |
8df3197 to
9ec2a5e
Compare
Hi ; I rebased but I dunno how to fix the test. The Unit test 8.2 high-deps is checking out the code on Symfony 6.4 So this file changes are lost And of course tests are failing since they don't have the Any clue how to fix this @Spomky ? |
|
Friendly ping @nicolas-grekas you might know how to solve the failure #60805 (comment) Test are failing but I feel like I cannot fix them since it runs the 6.4 version and I'm on the 7.4 branch... |
|
I suggest that we update the |
|
Thank you @VincentLanglet. |
…lity with Symfony 7.4 (xabbuh) This PR was merged into the 6.4 branch. Discussion ---------- [FrameworkBundle] relax assertions for forward compatibility with Symfony 7.4 | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | see #60805 (comment) and my response to it | License | MIT Commits ------- 0e9136e relax assertions for forward compatibility with Symfony 7.4

This would allow to use the same message for a Length constraint which say
"The length needs to be between {{ min }} and {{ max }}".