From fd79e0aec32892551c0da4c9a5c06c6bd448a104 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Fri, 16 Aug 2019 18:04:54 +0200 Subject: [PATCH] Fix illegal offset --- src/TenantManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TenantManager.php b/src/TenantManager.php index 1409a36f..5c84bd89 100644 --- a/src/TenantManager.php +++ b/src/TenantManager.php @@ -273,7 +273,7 @@ final class TenantManager { $uuid = $uuid ?: $this->tenant['uuid']; - if (isset($this->tenant['uuid']) && $uuid === $this->tenant['uuid'] && isset($this->tenant[$key])) { + if (array_key_exists('uuid', $this->tenant) && $uuid === $this->tenant['uuid'] && array_key_exists($key, $this->tenant)) { return $this->tenant[$key]; }