mirror of
https://github.com/archtechx/tenancy.git
synced 2026-05-07 02:24:03 +00:00
Check if paremeter is string
This commit is contained in:
parent
bacbf934e1
commit
37a4c7dd27
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue