Skip to content
Permalink
Browse files

Revert change to toArray

  • Loading branch information...
dakota committed Nov 2, 2017
1 parent 38e7646 commit 62ddb4700c0ae8c7b5a3916256d2c8cbd0fc04ba
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Collection/CollectionTrait.php
@@ -512,7 +512,7 @@ public function insert($path, $values)
public function toArray($preserveKeys = true)
{
$iterator = $this->unwrap();
if (get_class($iterator) === ArrayIterator::class) {
if ($iterator instanceof ArrayIterator) {
$items = $iterator->getArrayCopy();
return $preserveKeys ? $items : array_values($items);

0 comments on commit 62ddb47

Please sign in to comment.
You can’t perform that action at this time.