Skip to content

Commit

Permalink
Revert "Silly change to make PHPStan happy"
Browse files Browse the repository at this point in the history
This reverts commit 5b14976.
  • Loading branch information
dakota committed Nov 15, 2017
1 parent 5b14976 commit f859919
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Collection/CollectionTrait.php
Expand Up @@ -819,7 +819,7 @@ protected function optimizeUnwrap()
{
$iterator = $this->unwrap();

if (get_class($iterator) === ArrayIterator::class && $iterator instanceof ArrayIterator) {
if (get_class($iterator) === ArrayIterator::class) {
$iterator = $iterator->getArrayCopy();
}

Expand Down
2 changes: 1 addition & 1 deletion src/Collection/Iterator/ExtractIterator.php
Expand Up @@ -88,7 +88,7 @@ public function unwrap()
$iterator = $iterator->unwrap();
}

if (get_class($iterator) !== ArrayIterator::class || !$iterator instanceof ArrayIterator) {
if (get_class($iterator) !== ArrayIterator::class) {
return $this;
}

Expand Down

0 comments on commit f859919

Please sign in to comment.