Skip to content

Commit e1f8c60

Browse files
committed
fix
1 parent 9ce2685 commit e1f8c60

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/PHPStan/Rules/NameHookedRuleTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,11 @@ public function getNodeType(): string
3030
*/
3131
public function processNode(Node $node, Scope $scope): array
3232
{
33-
return RuleErrorBuilder::message('Found a name: ' . $node->toString())
33+
$error = RuleErrorBuilder::message('Found a name: ' . $node->toString())
3434
->identifier('test.name.hooked')
3535
->build();
36+
37+
return [$error];
3638
}
3739

3840
};

0 commit comments

Comments
 (0)