Skip to content

Commit b348995

Browse files
another
1 parent 44d2398 commit b348995

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Rules/Methods/CallToMethodStatementWithNoDiscardRule.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace PHPStan\Rules\Methods;
44

55
use PhpParser\Node;
6+
use PhpParser\Node\Expr\MethodCall;
67
use PHPStan\Analyser\NullsafeOperatorHelper;
78
use PHPStan\Analyser\Scope;
89
use PHPStan\DependencyInjection\RegisteredRule;
@@ -15,7 +16,7 @@
1516
use function sprintf;
1617

1718
/**
18-
* @implements Rule<CallLike>
19+
* @implements Rule<MethodCall>
1920
*/
2021
#[RegisteredRule(level: 4)]
2122
final class CallToMethodStatementWithNoDiscardRule implements Rule
@@ -29,7 +30,7 @@ public function getNodeType(): string
2930
{
3031
// We can ignore NullsafeMethodCall because a virtual MethodCall will
3132
// also be processed
32-
return Node\Expr\MethodCall::class;
33+
return MethodCall::class;
3334
}
3435

3536
public function processNode(Node $node, Scope $scope): array

0 commit comments

Comments
 (0)