Skip to content

Commit

Permalink
RectorConfigBuilder: skip and rules can be called multiple times (#5623)
Browse files Browse the repository at this point in the history
  • Loading branch information
integer committed Feb 16, 2024
1 parent d0f0e97 commit 7cd56d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Configuration/RectorConfigBuilder.php
Expand Up @@ -266,7 +266,7 @@ public function withPaths(array $paths): self
*/
public function withSkip(array $skip): self
{
$this->skip = $skip;
$this->skip = array_merge($this->skip, $skip);

return $this;
}
Expand Down Expand Up @@ -480,7 +480,7 @@ public function withPreparedSets(
*/
public function withRules(array $rules): self
{
$this->rules = $rules;
$this->rules = array_merge($this->rules, $rules);

return $this;
}
Expand Down

0 comments on commit 7cd56d8

Please sign in to comment.