Skip to content

Commit d3b217c

Browse files
committed
chore: update Kint to 5.0.7
1 parent 1e7204b commit d3b217c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

system/ThirdParty/Kint/Parser/Parser.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,11 @@ private function parseArray(array &$var, Value $o): Value
374374
}
375375

376376
$stash = $val;
377-
$copy[$i] = $refmarker;
377+
try {
378+
$copy[$i] = $refmarker;
379+
} catch (TypeError $e) {
380+
$child->reference = true;
381+
}
378382
if ($val === $refmarker) {
379383
$child->reference = true;
380384
$val = $stash;

0 commit comments

Comments
 (0)