From d3b217cf25ba69abf834a3d4aaa687826a5bc12e Mon Sep 17 00:00:00 2001 From: kenjis Date: Tue, 27 Jun 2023 09:50:12 +0900 Subject: [PATCH] chore: update Kint to 5.0.7 --- system/ThirdParty/Kint/Parser/Parser.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/system/ThirdParty/Kint/Parser/Parser.php b/system/ThirdParty/Kint/Parser/Parser.php index 5c7a40a3ac1a..50642b90a123 100644 --- a/system/ThirdParty/Kint/Parser/Parser.php +++ b/system/ThirdParty/Kint/Parser/Parser.php @@ -374,7 +374,11 @@ private function parseArray(array &$var, Value $o): Value } $stash = $val; - $copy[$i] = $refmarker; + try { + $copy[$i] = $refmarker; + } catch (TypeError $e) { + $child->reference = true; + } if ($val === $refmarker) { $child->reference = true; $val = $stash;