Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
janedbal committed Dec 27, 2024
1 parent 9ce2685 commit e1f8c60
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/PHPStan/Rules/NameHookedRuleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}

};
Expand Down

0 comments on commit e1f8c60

Please sign in to comment.