Skip to content

Commit 6ebbed6

Browse files
committed
use MethodCall and StaticCall as current ReflectionResolver can get
1 parent 3211807 commit 6ebbed6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

rules/DowngradePhp80/Rector/FuncCall/DowngradeSubstrFalsyRector.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
use PhpParser\Node\Expr\Cast\String_;
1616
use PhpParser\Node\Expr\Empty_;
1717
use PhpParser\Node\Expr\FuncCall;
18+
use PhpParser\Node\Expr\MethodCall;
19+
use PhpParser\Node\Expr\StaticCall;
1820
use PhpParser\Node\Expr\Ternary;
1921
use PHPStan\Reflection\FunctionReflection;
2022
use PHPStan\Reflection\MethodReflection;
@@ -65,13 +67,14 @@ public function getNodeTypes(): array
6567
Ternary::class,
6668
Identical::class,
6769
Concat::class,
68-
CallLike::class,
70+
MethodCall::class,
71+
StaticCall::class,
6972
FuncCall::class,
7073
];
7174
}
7275

7376
/**
74-
* @param Cast|Empty_|BooleanNot|Ternary|Identical|Concat|CallLike|FuncCall $node
77+
* @param Cast|Empty_|BooleanNot|Ternary|Identical|Concat|MethodCall|StaticCall|FuncCall $node
7578
*/
7679
public function refactor(Node $node): ?Node
7780
{

0 commit comments

Comments
 (0)