Skip to content

Commit da67f5d

Browse files
brikoujakzal
authored andcommitted
[Finder] Added GLOB_BRACE support in Finder::in() method
1 parent 64c7095 commit da67f5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Finder/Finder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ public function in($dirs)
661661
foreach ((array) $dirs as $dir) {
662662
if (is_dir($dir)) {
663663
$resolvedDirs[] = $dir;
664-
} elseif ($glob = glob($dir, GLOB_ONLYDIR)) {
664+
} elseif ($glob = glob($dir, GLOB_BRACE | GLOB_ONLYDIR)) {
665665
$resolvedDirs = array_merge($resolvedDirs, $glob);
666666
} else {
667667
throw new \InvalidArgumentException(sprintf('The "%s" directory does not exist.', $dir));

0 commit comments

Comments
 (0)
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