Skip to content

Commit

Permalink
fix: Use old syntax for array merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Baese committed Aug 14, 2024
1 parent 4bafd07 commit 66ef1b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/RawFilterRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit 66ef1b5

Please sign in to comment.