Skip to content
Snippets Groups Projects
Verified Commit a0f561da authored by Jiří Pudil's avatar Jiří Pudil
Browse files

only findFiles() when searching for definition files recursively

parent 67ee291f
No related branches found
No related tags found
1 merge request!53Check command
Pipeline #36678 passed
......@@ -19,7 +19,7 @@ final class DefinitionFilesLocator
$result = [];
if (\is_dir($path)) {
$files = Finder::find($searchPattern)->from($path);
$files = Finder::findFiles($searchPattern)->from($path);
foreach ($files as $file) {
$result[] = DefinitionFile::from($file->getPathname());
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment