diff --git a/system/Validation/Rules.php b/system/Validation/Rules.php index aba9ff117df6..04e7f0771c17 100644 --- a/system/Validation/Rules.php +++ b/system/Validation/Rules.php @@ -209,7 +209,7 @@ public function not_in_list(?string $value, string $list): bool } /** - * @param mixed $str + * @param array|bool|float|int|object|string|null $str */ public function required($str = null): bool { diff --git a/system/Validation/Validation.php b/system/Validation/Validation.php index 29a9bee54958..8537ed602f6f 100644 --- a/system/Validation/Validation.php +++ b/system/Validation/Validation.php @@ -183,8 +183,8 @@ public function run(?array $data = null, ?string $group = null, ?string $dbGroup * Runs the validation process, returning true or false * determining whether validation was successful or not. * - * @param mixed $value - * @param string[] $errors + * @param array|bool|float|int|object|string|null $value + * @param string[] $errors */ public function check($value, string $rule, array $errors = []): bool { diff --git a/system/Validation/ValidationInterface.php b/system/Validation/ValidationInterface.php index dc0679a3e328..5e568d4a4914 100644 --- a/system/Validation/ValidationInterface.php +++ b/system/Validation/ValidationInterface.php @@ -31,9 +31,8 @@ public function run(?array $data = null, ?string $group = null): bool; * Check; runs the validation process, returning true or false * determining whether or not validation was successful. * - * @param mixed $value Value to validation. - * @param string $rule Rule. - * @param string[] $errors Errors. + * @param array|bool|float|int|object|string|null $value Value to validate. + * @param string[] $errors * * @return bool True if valid, else false. */