Skip to content

Commit 215185f

Browse files
committed
fix: FileHelper directory globbing
1 parent ec0dba8 commit 215185f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/Internal/FileHelper.php

+7-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,13 @@ function (array $carry, string $path) use ($filter): array {
4040
$absolutePath = $this->fileHelper->absolutizePath($path);
4141

4242
if ($this->isGlobPattern($absolutePath)) {
43-
$directories = (array) glob($absolutePath, GLOB_ONLYDIR);
43+
$glob = glob($absolutePath, GLOB_ONLYDIR);
44+
45+
if ($glob === false) {
46+
return $carry;
47+
}
48+
49+
$directories = $glob;
4450
} else {
4551
if (! is_dir($absolutePath)) {
4652
return $carry;

0 commit comments

Comments
 (0)