Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
voku committed Sep 3, 2017
1 parent 4060dfc commit 85758d8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Arrayy.php
Expand Up @@ -1742,11 +1742,13 @@ protected function internalGetArray(&$value)
if (count($valueTmp) === 0) {
$value = array();
} else {
$value &= $valueTmp;
/** @noinspection PhpUnusedLocalVariableInspection */
$value = &$valueTmp;
}

} elseif ($value instanceof \JsonSerializable) {
$value &= $value->jsonSerialize();
/** @noinspection PhpUnusedLocalVariableInspection */
$value = &$value->jsonSerialize();
}
}

Expand Down

0 comments on commit 85758d8

Please sign in to comment.