Skip to content

Commit c33cfea

Browse files
committed
FileFinder - sort files before returning
1 parent 5b85fc7 commit c33cfea

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/File/FileFinder.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
use function file_exists;
1010
use function implode;
1111
use function is_file;
12+
use function sort;
1213

1314
final class FileFinder
1415
{
@@ -48,6 +49,8 @@ public function findFiles(array $paths): FileFinderResult
4849

4950
$files = array_values(array_unique(array_filter($files, fn (string $file): bool => !$this->fileExcluder->isExcludedFromAnalysing($file))));
5051

52+
sort($files);
53+
5154
return new FileFinderResult($files, $onlyFiles);
5255
}
5356

0 commit comments

Comments
 (0)