From 37a4c7dd276fd335975c22b10fb4b322ff70658b Mon Sep 17 00:00:00 2001 From: lukinovec Date: Thu, 30 Apr 2026 15:08:46 +0200 Subject: [PATCH] Check if paremeter is string --- src/Database/Concerns/ValidatesDatabaseParameters.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Database/Concerns/ValidatesDatabaseParameters.php b/src/Database/Concerns/ValidatesDatabaseParameters.php index 89a545cf..360f12a6 100644 --- a/src/Database/Concerns/ValidatesDatabaseParameters.php +++ b/src/Database/Concerns/ValidatesDatabaseParameters.php @@ -57,10 +57,10 @@ trait ValidatesDatabaseParameters $allowlist = $allowlist ?? static::parameterAllowlist(); foreach ((array) $parameters as $parameter) { - if (is_null($parameter)) { + if (! is_string($parameter)) { // Skip if there's nothing to validate // (e.g. when $tenant->database()->getUsername() of an - // improperly created tenant is passed). + // improperly created tenant is null and it gets passed). continue; }