Skip to content

Commit

Permalink
fix children cond
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Jul 5, 2023
1 parent 078e9a5 commit 0b99334
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Iterator/ExcludeDirectoryFilterIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function __construct(\Iterator $iterator, array $directories)
#[\ReturnTypeWillChange]
public function accept()
{
if ($this->isRecursive && isset($this->excludedDirs[$this->getFilename()]) && $this->isDir()) {
if (isset($this->excludedDirs[$this->getFilename()]) && $this->hasChildren()) {
return false;
}

Expand Down

0 comments on commit 0b99334

Please sign in to comment.