From 89c7289b66f29fc8bbc63457133896f372d380a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Fri, 16 Aug 2019 18:26:18 +0200 Subject: [PATCH] Switch order of conditions --- src/TenantManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TenantManager.php b/src/TenantManager.php index 8da49762..fdd077f8 100644 --- a/src/TenantManager.php +++ b/src/TenantManager.php @@ -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]; }