1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-05-06 14:24:04 +00:00

Check if paremeter is string

This commit is contained in:
lukinovec 2026-04-30 15:08:46 +02:00
parent bacbf934e1
commit 37a4c7dd27

View file

@ -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;
}