Skip to content

Commit

Permalink
refactor: cast param to string
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Oct 23, 2023
1 parent 5a21396 commit 978ae15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/Validation/Validation.php
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ protected function processRules(

// @phpstan-ignore-next-line $error may be set by rule methods.
$this->errors[$field] = $error ?? $this->getErrorMessage(
($this->isClosure($rule) || $arrayCallable) ? $i : $rule,
($this->isClosure($rule) || $arrayCallable) ? (string) $i : $rule,
$field,
$label,
$param,
Expand Down

0 comments on commit 978ae15

Please sign in to comment.