From 0ce5f16d7e2cb598c23fd21d3be56437cbbc0683 Mon Sep 17 00:00:00 2001 From: Remi Ebeling Date: Wed, 4 Dec 2024 14:16:02 +0100 Subject: [PATCH] MaxValue Rule should only fail, when $value is higher than the given maximal value --- src/Forms/Rules/MaxValueRule.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Forms/Rules/MaxValueRule.php b/src/Forms/Rules/MaxValueRule.php index 1c85635..48aafe5 100644 --- a/src/Forms/Rules/MaxValueRule.php +++ b/src/Forms/Rules/MaxValueRule.php @@ -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}.',