Skip to content

Commit

Permalink
Merge pull request #203 from iggyvolz/required-parameter-follows-opti…
Browse files Browse the repository at this point in the history
…onal

Make first parameter of `LocateFilesByGlobPattern#__invoke()` required
  • Loading branch information
Ocramius authored Sep 18, 2020
2 parents 196131e + d20727c commit e0182be
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class LocateFilesByGlobPattern
* @return Traversable<string> 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);
Expand Down

0 comments on commit e0182be

Please sign in to comment.