From ff03cee2c42b21ae7f083c4a310a42e0bfde4d15 Mon Sep 17 00:00:00 2001 From: Eric Stern Date: Wed, 20 Jan 2021 11:03:50 -0800 Subject: [PATCH] Make sure it breaks under alpine --- src/Iterator/GlobIterator.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Iterator/GlobIterator.php b/src/Iterator/GlobIterator.php index 2ef80f8..43fd38f 100644 --- a/src/Iterator/GlobIterator.php +++ b/src/Iterator/GlobIterator.php @@ -53,7 +53,8 @@ public function __construct($glob, $flags = 0) ('\\' !== DIRECTORY_SEPARATOR || false === strpos($glob, '[^')) ) { // GLOB_BRACE is not available in some environments. - $results = glob($glob, defined('GLOB_BRACE') ? GLOB_BRACE : 0); + // $results = glob($glob, defined('GLOB_BRACE') ? GLOB_BRACE : 0); + $results = glob($glob, GLOB_BRACE); // $results may be empty or false if $glob is invalid if (empty($results)) {