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 35666f0 commit 89ed2e4Copy full SHA for 89ed2e4
src/Symfony/Component/Finder/Iterator/FilterIterator.php
@@ -39,11 +39,17 @@ public function rewind()
39
while ($iterator instanceof \OuterIterator) {
40
$innerIterator = $iterator->getInnerIterator();
41
42
- if ($innerIterator instanceof \FilesystemIterator) {
+ if ($innerIterator instanceof RecursiveDirectoryIterator) {
43
+ if ($innerIterator->isRewindable()) {
44
+ $innerIterator->next();
45
+ $innerIterator->rewind();
46
+ }
47
+ } elseif ($innerIterator instanceof \FilesystemIterator) {
48
$innerIterator->next();
49
$innerIterator->rewind();
50
}
- $iterator = $iterator->getInnerIterator();
51
+
52
+ $iterator = $innerIterator;
53
54
55
parent::rewind();
0 commit comments