Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit dd9b5eb

Browse filesBrowse files
minor fix
1 parent 34c68f9 commit dd9b5eb
Copy full SHA for dd9b5eb

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
  • src/Symfony/Component/VarDumper/Cloner
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/VarDumper/Cloner/Data.php
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.