Permalink
Browse files

[Finder] Added GLOB_BRACE support in Finder::in() method

  • Loading branch information...
1 parent 0702b6d commit 88c877023c9c915306970e4de85732fb97c399ff @brikou brikou committed with jakzal Dec 5, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 Finder.php
View
@@ -661,7 +661,7 @@ public function in($dirs)
foreach ((array) $dirs as $dir) {
if (is_dir($dir)) {
$resolvedDirs[] = $dir;
- } elseif ($glob = glob($dir, GLOB_ONLYDIR)) {
+ } elseif ($glob = glob($dir, GLOB_BRACE | GLOB_ONLYDIR)) {
$resolvedDirs = array_merge($resolvedDirs, $glob);
} else {
throw new \InvalidArgumentException(sprintf('The "%s" directory does not exist.', $dir));

0 comments on commit 88c8770

Please sign in to comment.