diff --git a/src/Configuration/ECSConfigBuilder.php b/src/Configuration/ECSConfigBuilder.php index 641f10d1a0..ebdaf145e5 100644 --- a/src/Configuration/ECSConfigBuilder.php +++ b/src/Configuration/ECSConfigBuilder.php @@ -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);