Skip to content

Commit dd9b5eb

Browse files
minor fix
1 parent 34c68f9 commit dd9b5eb

File tree

1 file changed

+1
-1
lines changed
  • src/Symfony/Component/VarDumper/Cloner

1 file changed

+1
-1
lines changed

src/Symfony/Component/VarDumper/Cloner/Data.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ private function getStub($item)
423423
if (isset($item[0])) {
424424
$stub->cut = $item[0];
425425
}
426-
$stub->value = $stub->cut + \count($this->data[$stub->position]);
426+
$stub->value = $stub->cut + ($stub->position ? \count($this->data[$stub->position]) : 0);
427427

428428
return $stub;
429429
}

0 commit comments

Comments
 (0)