Skip to content

Commit

Permalink
make closure static
Browse files Browse the repository at this point in the history
  • Loading branch information
alekitto committed Jun 16, 2019
1 parent 46b94ce commit 866e105
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Loader/Locator/FinderFileLocator.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function locate(string $basePath, string $extension): array
->in($basePath)
->name('*'.$extension);

return \array_map(function (SplFileInfo $info) {
return \array_map(static function (SplFileInfo $info) {
return $info->getPathname();
}, \iterator_to_array($finder));
}
Expand Down

0 comments on commit 866e105

Please sign in to comment.