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 66use PhpParser \Node ;
77use PhpParser \NodeVisitorAbstract ;
88use PHPStan \DependencyInjection \AutowiredService ;
9+ use function in_array ;
910
1011#[AutowiredService]
1112final class TypeTraverserInstanceofVisitor extends NodeVisitorAbstract
@@ -38,7 +39,7 @@ public function enterNode(Node $node): ?Node
3839 if (
3940 $ node instanceof Node \Expr \StaticCall
4041 && $ node ->class instanceof Node \Name
41- && \ in_array ($ node ->class ->toLowerString (), self ::TYPE_TRAVERSER_CLASSES , true )
42+ && in_array ($ node ->class ->toLowerString (), self ::TYPE_TRAVERSER_CLASSES , true )
4243 && $ node ->name instanceof Node \Identifier
4344 && $ node ->name ->toLowerString () === 'map '
4445 ) {
@@ -54,7 +55,7 @@ public function leaveNode(Node $node): ?Node
5455 if (
5556 $ node instanceof Node \Expr \StaticCall
5657 && $ node ->class instanceof Node \Name
57- && \ in_array ($ node ->class ->toLowerString (), self ::TYPE_TRAVERSER_CLASSES , true )
58+ && in_array ($ node ->class ->toLowerString (), self ::TYPE_TRAVERSER_CLASSES , true )
5859 && $ node ->name instanceof Node \Identifier
5960 && $ node ->name ->toLowerString () === 'map '
6061 ) {
You can’t perform that action at this time.
0 commit comments