Skip to content

Correct defintion of Range validation messages #13644

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

Merged
merged 1 commit into from
May 6, 2020
Merged

Correct defintion of Range validation messages #13644

merged 1 commit into from
May 6, 2020

Conversation

jamesisaac
Copy link
Contributor

@jamesisaac jamesisaac commented May 5, 2020

The example given in the docs doesn't work since this change in 4.4: symfony/symfony@c5488bc

Even if you've written a nice min minMessage and maxMessage, users will just get the default "This value should be between X and Y." message, because the notInRange check gets carried out first, and returns before the individual min/max checks get performed.

@xabbuh xabbuh added this to the 4.4 milestone May 6, 2020
@javiereguiluz
Copy link
Member

@jamesisaac thanks for this improvement ... and congrats on your first Symfony Docs contribution!

@javiereguiluz javiereguiluz merged commit a80feaf into symfony:4.4 May 6, 2020
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.

4 participants