From 2fd44538e8ec7ce7cce02e72627ffcc65bf4c0c5 Mon Sep 17 00:00:00 2001 From: "Alexander M. Turek" Date: Mon, 31 Jul 2023 10:02:31 +0200 Subject: [PATCH] Revert "minor #50885 [Finder] Fix children condition in ExcludeDirectoryFilterIterator (mvorisek)" This reverts commit 9c1dedbc1ce884618e806112c1d9ef8324d77dc9, reversing changes made to 9cbdfc64e0c4edd520511e1c16c5de2ef151aefa. --- .../Finder/Iterator/ExcludeDirectoryFilterIterator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Finder/Iterator/ExcludeDirectoryFilterIterator.php b/src/Symfony/Component/Finder/Iterator/ExcludeDirectoryFilterIterator.php index def0ed28a2809..39797c82cab28 100644 --- a/src/Symfony/Component/Finder/Iterator/ExcludeDirectoryFilterIterator.php +++ b/src/Symfony/Component/Finder/Iterator/ExcludeDirectoryFilterIterator.php @@ -59,7 +59,7 @@ public function __construct(\Iterator $iterator, array $directories) #[\ReturnTypeWillChange] public function accept() { - if (isset($this->excludedDirs[$this->getFilename()]) && $this->hasChildren()) { + if ($this->isRecursive && isset($this->excludedDirs[$this->getFilename()]) && $this->isDir()) { return false; } pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy