Skip to content
Permalink
Browse files

Silly change to make PHPStan happy

  • Loading branch information...
dakota committed Nov 2, 2017
1 parent 62ddb47 commit 5b14976345767a6f649f9453e4c90d123977a205
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/Collection/CollectionTrait.php
  2. +1 −1 src/Collection/Iterator/ExtractIterator.php
@@ -819,7 +819,7 @@ protected function optimizeUnwrap()
{
$iterator = $this->unwrap();
if (get_class($iterator) === ArrayIterator::class) {
if (get_class($iterator) === ArrayIterator::class && $iterator instanceof ArrayIterator) {
$iterator = $iterator->getArrayCopy();
}
@@ -88,7 +88,7 @@ public function unwrap()
$iterator = $iterator->unwrap();
}
if (get_class($iterator) !== ArrayIterator::class) {
if (get_class($iterator) !== ArrayIterator::class || !$iterator instanceof ArrayIterator) {
return $this;
}

0 comments on commit 5b14976

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