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 f0b3d52 commit a321b29Copy full SHA for a321b29
src/File/FileExcluder.php
@@ -50,7 +50,7 @@ final class FileExcluder
50
* @param string[] $analyseExcludes
51
*/
52
public function __construct(
53
- FileHelper $fileHelper,
+ private FileHelper $fileHelper,
54
array $analyseExcludes,
55
)
56
{
@@ -89,6 +89,8 @@ public function __construct(
89
90
public function isExcludedFromAnalysing(string $file): bool
91
92
+ $file = $this->fileHelper->normalizePath($file);
93
+
94
foreach ($this->literalAnalyseExcludes as $exclude) {
95
if (str_starts_with($file, $exclude)) {
96
return true;
0 commit comments