8000 Revert "minor #50885 [Finder] Fix children condition in ExcludeDirect… · symfony/symfony@2fd4453 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2fd4453

Browse files
committed
Revert "minor #50885 [Finder] Fix children condition in ExcludeDirectoryFilterIterator (mvorisek)"
This reverts commit 9c1dedb, reversing changes made to 9cbdfc6.
1 parent efff124 commit 2fd4453

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Finder/Iterator/ExcludeDirectoryFilterIterator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function __construct(\Iterator $iterator, array $directories)
5959
#[\ReturnTypeWillChange]
6060
public function accept()
6161
{
62-
if (isset($this->excludedDirs[$this->getFilename()]) && $this->hasChildren()) {
62+
if ($this->isRecursive && isset($this->excludedDirs[$this->getFilename()]) && $this->isDir()) {
6363
return false;
6464
}
6565

0 commit comments

Comments
 (0)
0