1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 18:04:03 +00:00

Switch order of conditions

This commit is contained in:
Samuel Štancl 2019-08-16 18:26:18 +02:00
parent bbafc9d8e2
commit 89c7289b66

View file

@ -274,7 +274,7 @@ 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) && ! is_array($key)) {
! is_array($key) && array_key_exists($key, $this->tenant)) {
return $this->tenant[$key];
}