Skip to content

Commit 69bc80d

Browse files
authored
GLOB_BRACE workaround (#153)
* GLOB_BRACE workaround * GLOB_BRACE workaround
1 parent a56f44a commit 69bc80d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Plugin.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@ class Plugin implements PluginEntryPointInterface
3333
*/
3434
protected function getCommonStubs(): array
3535
{
36-
return glob(__DIR__.'/Stubs/common/{*,*/*}.stubphp', GLOB_BRACE) ?: [];
36+
// GLOB_BRACE is undefined on Alpine Linux https://bugs.php.net/bug.php?id=72095
37+
return array_merge(
38+
glob(__DIR__.'/Stubs/common/*/*.stubphp'),
39+
glob(__DIR__.'/Stubs/common/*.stubphp')
40+
) ?: [];
3741
}
3842

3943
/**

0 commit comments

Comments
 (0)