Skip to content

Commit

Permalink
Fix paths override each other on ECSConfigBuilder (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Feb 5, 2024
1 parent afb5a4d commit c09e4e4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Configuration/ECSConfigBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,11 @@ final class ECSConfigBuilder
public function __invoke(ECSConfig $ecsConfig): void
{
$ecsConfig->sets($this->sets);
$ecsConfig->paths($this->paths);

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

$ecsConfig->skip($this->skip);
$ecsConfig->rules($this->rules);
$ecsConfig->rulesWithConfiguration($this->rulesWithConfiguration);
Expand Down

0 comments on commit c09e4e4

Please sign in to comment.