File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 33namespace PHPStan \Rules \Methods ;
44
55use PhpParser \Node ;
6+ use PhpParser \Node \Expr \MethodCall ;
67use PHPStan \Analyser \NullsafeOperatorHelper ;
78use PHPStan \Analyser \Scope ;
89use PHPStan \DependencyInjection \RegisteredRule ;
1516use function sprintf ;
1617
1718/**
18- * @implements Rule<CallLike >
19+ * @implements Rule<MethodCall >
1920 */
2021#[RegisteredRule(level: 4 )]
2122final 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
You can’t perform that action at this time.
0 commit comments