Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit da67f5d

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

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎src/Symfony/Component/Finder/Finder.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Finder/Finder.php
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.