From b410ca73a8a285f8799dc0b336c673b79c62ec42 Mon Sep 17 00:00:00 2001 From: kenjis Date: Fri, 5 Aug 2022 16:37:07 +0900 Subject: [PATCH] chore: update Kint to 4.1.4 in ThirdParty --- system/ThirdParty/Kint/Utils.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/system/ThirdParty/Kint/Utils.php b/system/ThirdParty/Kint/Utils.php index 5143731c75c4..aa62bf623435 100644 --- a/system/ThirdParty/Kint/Utils.php +++ b/system/ThirdParty/Kint/Utils.php @@ -109,6 +109,10 @@ public static function composerGetExtras($key = 'kint') if (\file_exists($installed) && \is_readable($installed)) { $packages = \json_decode(\file_get_contents($installed), true); + if (!\is_array($packages)) { + continue; + } + foreach ($packages as $package) { if (isset($package['extra'][$key]) && \is_array($package['extra'][$key])) { $extras = \array_replace($extras, $package['extra'][$key]);