From 6e9c556f334cf5d37ce1208bf9ecec07be6a2ff6 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Mon, 31 Aug 2026 06:56:18 +0700 Subject: [PATCH] perf: directly append violations on RuleViolationCollection::merge() --- src/Rule/RuleViolationCollection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } }