Skip to content

Commit cfae149

Browse files
committed
do not coerce NAN to other types
1 parent 18732cf commit cfae149

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
@@ -298,7 +298,7 @@ private function dumpItem(DumperInterface $dumper, Cursor $cursor, array &$refs,
298298
if (!$item instanceof Stub) {
299299
$cursor->attr = [];
300300
$type = \gettype($item);
301-
if ($item && 'array' === $type) {
301+
if ('array' === $type && $item) {
302302
$item = $this->getStub($item);
303303
}
304304
} elseif (Stub::TYPE_REF === $item->type) {

0 commit comments

Comments
 (0)