Skip to content

Commit 09e4fbe

Browse files
authored
Fix excluding files when excludePaths.analyse and excludePaths.analyseAndScan are used at the same time
1 parent beeb653 commit 09e4fbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/File/FileExcluderFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function createAnalyseFileExcluder(): FileExcluder
4444
$paths = $this->excludePaths['analyse'];
4545
}
4646
if (array_key_exists('analyseAndScan', $this->excludePaths)) {
47-
$paths = $this->excludePaths['analyseAndScan'];
47+
$paths = array_merge($paths, $this->excludePaths['analyseAndScan']);
4848
}
4949

5050
return $this->fileExcluderRawFactory->create(array_values(array_unique($paths)));

0 commit comments

Comments
 (0)