Skip to content
Permalink
Browse files

Revert "Silly change to make PHPStan happy"

This reverts commit 5b14976.
  • Loading branch information...
dakota committed Nov 15, 2017
1 parent 5b14976 commit f859919dbd8b771d8b659f309194dd32f7af72b9
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 && $iterator instanceof ArrayIterator) {
if (get_class($iterator) === ArrayIterator::class) {
$iterator = $iterator->getArrayCopy();
}
@@ -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;
}

0 comments on commit f859919

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