diff --git a/src/Tracy/Dumper/Renderer.php b/src/Tracy/Dumper/Renderer.php index a32e5a7ce..60bddbc6c 100644 --- a/src/Tracy/Dumper/Renderer.php +++ b/src/Tracy/Dumper/Renderer.php @@ -47,6 +47,9 @@ final class Renderer /** @var Value[]|null */ private $snapshotSelection; + /** @var array */ + private $snapshotParents = []; + /** @var array */ private $parents = []; @@ -442,10 +445,10 @@ private function copySnapshot($value): void return; } $ref = $this->snapshotSelection[$value->value] = $this->snapshot[$value->value]; - if (!isset($this->parents[$value->value])) { - $this->parents[$value->value] = true; + if (!isset($this->snapshotParents[$value->value])) { + $this->snapshotParents[$value->value] = true; $this->copySnapshot($ref); - unset($this->parents[$value->value]); + unset($this->snapshotParents[$value->value]); } } elseif ($value instanceof Value && $value->items) { foreach ($value->items as [, $v]) {