Skip to content

Commit 476c4ae

Browse files
Merge branch '6.4' into 7.3
* 6.4: don't cast strings exceeding the min/max int ranges do not pass the empty string to ord() do not coerce NAN to other types fix transient Console output related test
2 parents b8abe7d + cfae149 commit 476c4ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Cloner/Data.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ private function dumpItem(DumperInterface $dumper, Cursor $cursor, array &$refs,
293293
if (!$item instanceof Stub) {
294294
$cursor->attr = [];
295295
$type = \gettype($item);
296-
if ($item && 'array' === $type) {
296+
if ('array' === $type && $item) {
297297
$item = $this->getStub($item);
298298
}
299299
} elseif (Stub::TYPE_REF === $item->type) {

0 commit comments

Comments
 (0)