Skip to content

Commit db2f964

Browse files
Fix cs
1 parent 2b384aa commit db2f964

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Parser/TypeTraverserInstanceofVisitor.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
use PhpParser\Node;
77
use PhpParser\NodeVisitorAbstract;
88
use PHPStan\DependencyInjection\AutowiredService;
9+
use function in_array;
910

1011
#[AutowiredService]
1112
final 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
) {

0 commit comments

Comments
 (0)