From 978ae156fae0f868f18b2102bc7ef7a30ef7f784 Mon Sep 17 00:00:00 2001 From: kenjis Date: Mon, 23 Oct 2023 11:25:28 +0900 Subject: [PATCH] refactor: cast param to string --- system/Validation/Validation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/Validation/Validation.php b/system/Validation/Validation.php index 0b49fe02c48b..b10711978068 100644 --- a/system/Validation/Validation.php +++ b/system/Validation/Validation.php @@ -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,