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 cbf2e51 commit 860a301Copy full SHA for 860a301
Finder.php
@@ -669,7 +669,7 @@ public function append($iterator)
669
$this->iterators[] = $iterator->getIterator();
670
} elseif ($iterator instanceof \Iterator) {
671
$this->iterators[] = $iterator;
672
- } elseif ($iterator instanceof \Traversable || \is_array($iterator)) {
+ } elseif (is_iterable($iterator)) {
673
$it = new \ArrayIterator();
674
foreach ($iterator as $file) {
675
$file = $file instanceof \SplFileInfo ? $file : new \SplFileInfo($file);
0 commit comments