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 18a6723 commit 7491260Copy full SHA for 7491260
src/File/FileFinder.php
@@ -4,6 +4,7 @@
4
5
use Symfony\Component\Finder\Finder;
6
use function array_filter;
7
+use function array_unique;
8
use function array_values;
9
use function file_exists;
10
use function implode;
@@ -45,7 +46,7 @@ public function findFiles(array $paths): FileFinderResult
45
46
}
47
48
- $files = array_values(array_filter($files, fn (string $file): bool => !$this->fileExcluder->isExcludedFromAnalysing($file)));
49
+ $files = array_values(array_unique(array_filter($files, fn (string $file): bool => !$this->fileExcluder->isExcludedFromAnalysing($file))));
50
51
return new FileFinderResult($files, $onlyFiles);
52
0 commit comments