Skip to content

Commit 978ae15

Browse files
committed
refactor: cast param to string
1 parent 5a21396 commit 978ae15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/Validation/Validation.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ protected function processRules(
337337

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

0 commit comments

Comments
 (0)