diff --git a/tests/PHPStan/Rules/NameHookedRuleTest.php b/tests/PHPStan/Rules/NameHookedRuleTest.php index 483de8b4b6..80419b3ab0 100644 --- a/tests/PHPStan/Rules/NameHookedRuleTest.php +++ b/tests/PHPStan/Rules/NameHookedRuleTest.php @@ -30,9 +30,11 @@ public function getNodeType(): string */ public function processNode(Node $node, Scope $scope): array { - return RuleErrorBuilder::message('Found a name: ' . $node->toString()) + $error = RuleErrorBuilder::message('Found a name: ' . $node->toString()) ->identifier('test.name.hooked') ->build(); + + return [$error]; } };