diff --git a/src/Rule/RuleViolationCollection.php b/src/Rule/RuleViolationCollection.php index 78fb2ea9..cfdcbe38 100644 --- a/src/Rule/RuleViolationCollection.php +++ b/src/Rule/RuleViolationCollection.php @@ -33,7 +33,7 @@ public function add(RuleViolation $ruleViolation): void public function merge(self $other): void { foreach ($other as $violation) { - $this->add($violation); + $this->violations[] = $violation; } }