From 319f8024e800b55846a96525919a7d553708e085 Mon Sep 17 00:00:00 2001 From: Bernhard Schussek Date: Wed, 23 Dec 2015 15:38:39 +0100 Subject: [PATCH] Fixed passing of flags --- src/Iterator/GlobIterator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Iterator/GlobIterator.php b/src/Iterator/GlobIterator.php index ad7ab79..83fcfef 100644 --- a/src/Iterator/GlobIterator.php +++ b/src/Iterator/GlobIterator.php @@ -37,7 +37,7 @@ class GlobIterator extends IteratorIterator */ public function __construct($glob, $flags = 0) { - $basePath = Glob::getBasePath($glob); + $basePath = Glob::getBasePath($glob, $flags); if (!Glob::isDynamic($glob) && file_exists($glob)) { // If the glob is a file path, return that path