Skip to content

Commit 8ccb900

Browse files
Merge branch '5.4' into 6.2
* 5.4: Update VERSION for 5.4.27 Update CONTRIBUTORS for 5.4.27 Update CHANGELOG for 5.4.27 Revert "minor #50885 [Finder] Fix children condition in ExcludeDirectoryFilterIterator (mvorisek)" CI: Disable Psalm's findUnusedBaselineEntry feature Remove 6.2 from the list of potential branch targets Bump Symfony version to 5.4.27 Update VERSION for 5.4.26 Update CONTRIBUTORS for 5.4.26 Update CHANGELOG for 5.4.26 Fix symfony/deprecation-contracts require
2 parents a44e676 + ff4bce3 commit 8ccb900

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)