diff --git a/src/RawFilterRule.php b/src/RawFilterRule.php index af1c466..11a4c3e 100644 --- a/src/RawFilterRule.php +++ b/src/RawFilterRule.php @@ -26,12 +26,12 @@ public function check(TokenStream $tokens): array { } $token = $tokens->getCurrent(); if ($new_violations = $this->validateRawFilterComment($token, $tokens)) { - $violations[] = $new_violations; + $violations = array_merge($violations, $new_violations); } $tokens->next(); } - return array_merge(...$violations); + return $violations; } /**