Skip to content

Commit 9915db2

Browse files
committed
Merge branch '5.4' into 6.3
* 5.4: Revert "minor #50885 [Finder] Fix children condition in ExcludeDirectoryFilterIterator (mvorisek)"
2 parents 78ce4c2 + ff4bce3 commit 9915db2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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
*/
6060
public function accept(): bool
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)