Skip to content

Commit

Permalink
MaxValue Rule should only fail, when $value is higher than the given …
Browse files Browse the repository at this point in the history
…maximal value
  • Loading branch information
remiebelingmerifond committed Dec 4, 2024
1 parent b5fa1ed commit 0ce5f16
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 0ce5f16

Please sign in to comment.