Skip to content

Commit fcfa55d

Browse files
committed
Update UselessFunctionReturnValueRule.php
1 parent 14f3d68 commit fcfa55d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Rules/Functions/UselessFunctionReturnValueRule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function processNode(Node $funcCall, Scope $scope): array
6262

6363
if (count($reorderedArgs) === 1 || (count($reorderedArgs) >= 2 && $scope->getType($reorderedArgs[1]->value)->isFalse()->yes())) {
6464
return [RuleErrorBuilder::message('Return value of call to function ' . $functionReflection->getName() . ' is useless.')
65-
->identifier('functionReflection.uselessReturn')
65+
->identifier('function.uselessReturnValue')
6666
->line($funcCall->getStartLine())
6767
->build(),
6868
];

0 commit comments

Comments
 (0)