Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/Rule/Rules/File/PhpFileFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ public function filesFromScope(
/** @return list<string> */
private function sourcePaths(string $basePath): array
{
return array_values(array_unique($this->sourcePaths ?? $this->psr4PathResolver->paths($basePath)));
if ($this->sourcePaths === null) {
return $this->psr4PathResolver->paths($basePath);
}

return array_values(array_unique($this->sourcePaths));
}
}
Loading