Skip to content

Commit 08c046e

Browse files
authored
Merge pull request #7626 from kenjis/update-kint-507
chore: update Kint to 5.0.7
2 parents 1f09de8 + d3b217c commit 08c046e

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)