Skip to content

Commit

Permalink
Fix rule names (#46768)
Browse files Browse the repository at this point in the history
  • Loading branch information
apih authored Apr 13, 2023
1 parent 5bae671 commit 81c61bd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Illuminate/Validation/Concerns/ValidatesAttributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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);

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 81c61bd

Please sign in to comment.