Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Jul 26, 2017
1 parent 34c68f9 commit dd9b5eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/VarDumper/Cloner/Data.php
Expand Up @@ -423,7 +423,7 @@ private function getStub($item)
if (isset($item[0])) {
$stub->cut = $item[0];
}
$stub->value = $stub->cut + \count($this->data[$stub->position]);
$stub->value = $stub->cut + ($stub->position ? \count($this->data[$stub->position]) : 0);

return $stub;
}
Expand Down

0 comments on commit dd9b5eb

Please sign in to comment.