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
[5.8.12] In-correct validation message for gte:value #28258
Comments
Hmm, annoying. When we fix this we should add a regression test that makes sure this isn't re-introduced again. |
It looks like the issue is in ValidatesAttributes File. In the
So in the original post example above this would return the below: The reason it returns the above
Notice that it passes in the
Since the
Then when we get to the below
And since it just returns false without supplying any logic that it was a type mismatch, it is sent to the Validator class's
Here, basically the same thing happens as above. The That takes us to the second
The below case is used since the
TLDR Perhaps something like the below would make more sense. If you think so, let me know and I can start a PR. in
And then adding the below to Finally, adding the below to
|
Per comment on closed PR, seems like this issue can be closed: #28474 (comment) |
Description:
Looks like 5.8.12 introduce this issue.
The PR #28174 fixed the long running issue of
gte
validation throwing type mismatch exceptions but introduce this one.Steps To Reproduce:
Result
Notice the 2 in error message.
The text was updated successfully, but these errors were encountered: