We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59383f8 commit b7df023Copy full SHA for b7df023
src/Install/GuidelineComposer.php
@@ -171,12 +171,7 @@ protected function guidelinesDir(string $dirPath): array
171
return [];
172
}
173
174
- $guidelines = [];
175
- foreach ($finder as $file) {
176
- $guidelines[] = $this->guideline($file->getRealPath());
177
- }
178
-
179
- return $guidelines;
+ return array_map(fn ($file) => $this->guideline($file->getRealPath()), iterator_to_array($finder));
180
181
182
/**
0 commit comments