From 81c61bdd234150667aaea2028914564317fed32f Mon Sep 17 00:00:00 2001 From: Mohd Hafizuddin M Marzuki Date: Thu, 13 Apr 2023 23:28:14 +0800 Subject: [PATCH] Fix rule names (#46768) --- src/Illuminate/Validation/Concerns/ValidatesAttributes.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Illuminate/Validation/Concerns/ValidatesAttributes.php b/src/Illuminate/Validation/Concerns/ValidatesAttributes.php index cb80dc180079..3077bf17641c 100644 --- a/src/Illuminate/Validation/Concerns/ValidatesAttributes.php +++ b/src/Illuminate/Validation/Concerns/ValidatesAttributes.php @@ -1416,7 +1416,7 @@ public function validateMax($attribute, $value, $parameters) */ public function validateMaxDigits($attribute, $value, $parameters) { - $this->requireParameterCount(1, $parameters, 'max'); + $this->requireParameterCount(1, $parameters, 'max_digits'); $length = strlen((string) $value); @@ -1518,7 +1518,7 @@ public function validateMin($attribute, $value, $parameters) */ public function validateMinDigits($attribute, $value, $parameters) { - $this->requireParameterCount(1, $parameters, 'min'); + $this->requireParameterCount(1, $parameters, 'min_digits'); $length = strlen((string) $value); @@ -1609,7 +1609,7 @@ public function validateMissingWith($attribute, $value, $parameters) */ public function validateMissingWithAll($attribute, $value, $parameters) { - $this->requireParameterCount(1, $parameters, 'missing_with'); + $this->requireParameterCount(1, $parameters, 'missing_with_all'); if (Arr::has($this->data, $parameters)) { return $this->validateMissing($attribute, $value, $parameters);