From 7ddbd13fcb066e5c4ea2c240e1084fd35a7d2713 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Amel=20Junuzovi=C4=87?= Date: Thu, 14 Nov 2024 07:58:41 +0100 Subject: [PATCH] rector and phpstan fix --- system/Validation/Rules.php | 6 +++--- system/Validation/StrictRules/Rules.php | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/system/Validation/Rules.php b/system/Validation/Rules.php index 7cf8570a9317..30fab3539ecd 100644 --- a/system/Validation/Rules.php +++ b/system/Validation/Rules.php @@ -178,9 +178,9 @@ public function is_unique($str, string $field, array $data): bool /** * Prepares the database query for uniqueness checks. * - * @param mixed $value The value to check. - * @param string $field The field parameters. - * @param array $data Additional data. + * @param mixed $value The value to check. + * @param string $field The field parameters. + * @param array $data Additional data. * * @return array{0: BaseBuilder, 1: string|null, 2: string|null} */ diff --git a/system/Validation/StrictRules/Rules.php b/system/Validation/StrictRules/Rules.php index 7327b54bb856..e836f4e4c127 100644 --- a/system/Validation/StrictRules/Rules.php +++ b/system/Validation/StrictRules/Rules.php @@ -15,7 +15,6 @@ use CodeIgniter\Helpers\Array\ArrayHelper; use CodeIgniter\Validation\Rules as NonStrictRules; -use Config\Database; /** * Validation Rules.