Skip to content

Commit

Permalink
Fix excluding files when excludePaths.analyse and excludePaths.analys…
Browse files Browse the repository at this point in the history
…eAndScan are used at the same time
  • Loading branch information
ondrejmirtes authored Jan 24, 2021
1 parent beeb653 commit 09e4fbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/File/FileExcluderFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function createAnalyseFileExcluder(): FileExcluder
$paths = $this->excludePaths['analyse'];
}
if (array_key_exists('analyseAndScan', $this->excludePaths)) {
$paths = $this->excludePaths['analyseAndScan'];
$paths = array_merge($paths, $this->excludePaths['analyseAndScan']);
}

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

0 comments on commit 09e4fbe

Please sign in to comment.