From d20727c5ee1b3845471b315bbe92461534fb2cf0 Mon Sep 17 00:00:00 2001 From: Katie Volz Date: Fri, 18 Sep 2020 15:28:27 -0400 Subject: [PATCH] Make first parameter of LocateFilesByGlobPattern::__invoke required --- .../FileLocator/LocateFilesByGlobPattern.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ComposerRequireChecker/FileLocator/LocateFilesByGlobPattern.php b/src/ComposerRequireChecker/FileLocator/LocateFilesByGlobPattern.php index 3992a847..ac21c73d 100644 --- a/src/ComposerRequireChecker/FileLocator/LocateFilesByGlobPattern.php +++ b/src/ComposerRequireChecker/FileLocator/LocateFilesByGlobPattern.php @@ -14,7 +14,7 @@ class LocateFilesByGlobPattern * @return Traversable the files found by the given glob patterns * @see https://github.com/webmozart/glob */ - public function __invoke(array $globPatterns = [], string $rootDir): Traversable + public function __invoke(array $globPatterns, string $rootDir): Traversable { foreach ($globPatterns as $globPattern) { yield from Glob::glob(rtrim($rootDir, '/') . '/' . $globPattern);