We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a832a7 commit c2257b0Copy full SHA for c2257b0
src/Latte/Runtime/CachingIterator.php
@@ -41,7 +41,7 @@ public function __construct($iterator)
41
} elseif ($iterator instanceof \IteratorAggregate) {
42
do {
43
$iterator = $iterator->getIterator();
44
- } while ($iterator instanceof \IteratorAggregate);
+ } while (!$iterator instanceof \Iterator);
45
46
} elseif ($iterator instanceof \Traversable) {
47
if (!$iterator instanceof \Iterator) {
0 commit comments