mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 17:44:04 +00:00
is_array check
This commit is contained in:
parent
3c9ead6aac
commit
bbafc9d8e2
2 changed files with 3 additions and 1 deletions
|
|
@ -273,7 +273,8 @@ final class TenantManager
|
|||
{
|
||||
$uuid = $uuid ?: $this->tenant['uuid'];
|
||||
|
||||
if (array_key_exists('uuid', $this->tenant) && $uuid === $this->tenant['uuid'] && array_key_exists($key, $this->tenant)) {
|
||||
if (array_key_exists('uuid', $this->tenant) && $uuid === $this->tenant['uuid'] &&
|
||||
array_key_exists($key, $this->tenant) && ! is_array($key)) {
|
||||
return $this->tenant[$key];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue