Skip to content

Commit

Permalink
Real fix paths The given paths do not match any files on RectorConfig…
Browse files Browse the repository at this point in the history
…Builder (#5561)

* Real fix paths The given paths do not match any files on RectorConfigBuilder

* assert

* fix
  • Loading branch information
samsonasik committed Feb 5, 2024
1 parent c0079e3 commit c44e1e5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Configuration/RectorConfigBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,11 @@ public function __invoke(RectorConfig $rectorConfig): void
$uniqueSets = array_unique($this->sets);

$rectorConfig->sets($uniqueSets);
$rectorConfig->paths($this->paths);

if ($this->paths !== []) {
$rectorConfig->paths($this->paths);
}

$rectorConfig->skip($this->skip);
$rectorConfig->rules($this->rules);

Expand Down

0 comments on commit c44e1e5

Please sign in to comment.