Skip to content

Commit 621f75f

Browse files
committed
fix children cond
1 parent 39d95e2 commit 621f75f

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 ($this->isRecursive && isset($this->excludedDirs[$this->getFilename()]) && $this->isDir()) {
62+
if (isset($this->excludedDirs[$this->getFilename()]) && $this->hasChildren()) {
6363
return false;
6464
}
6565

0 commit comments

Comments
 (0)