Skip to content

Commit

Permalink
Merge pull request #75 from remiebelingmerifond/bugfix/MaxValueRule
Browse files Browse the repository at this point in the history
MaxValue Rule should only fail, when $value is higher than the given maximal value
  • Loading branch information
pelmered authored Dec 4, 2024
2 parents b5fa1ed + 0ce5f16 commit 580e031
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Forms/Rules/MaxValueRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function validate(string $attribute, mixed $value, Closure $fail): void
$locale
);

if ($minorValue >= $this->max) {
if ($minorValue > $this->max) {
$fail(
strtr(
'The {attribute} must be less than or equal to {value}.',
Expand Down

0 comments on commit 580e031

Please sign in to comment.