From cd5f09e5759dd05ad4ab174ffe328aa65ddab990 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Fri, 23 Aug 2019 18:12:06 +0200 Subject: [PATCH] Fix false json decode --- src/TenantManager.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/TenantManager.php b/src/TenantManager.php index 4bb297f8..80c552e2 100644 --- a/src/TenantManager.php +++ b/src/TenantManager.php @@ -385,7 +385,9 @@ final class TenantManager protected function jsonDecodeArrayValues(array $array) { \array_walk($array, function (&$value, $key) { - $value = \json_decode($value, true); + if ($value) { + $value = \json_decode($value, true); + } }); return $array;