Skip to content

Commit f670a98

Browse files
committed
Update PhpPrinterIndentationDetectorVisitor.php
1 parent 93c1c09 commit f670a98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Fixable/PhpPrinterIndentationDetectorVisitor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
use PhpParser\Node;
88
use PhpParser\NodeVisitor;
99
use PhpParser\NodeVisitorAbstract;
10+
use function array_is_list;
1011
use function count;
1112
use function in_array;
12-
use function is_array;
1313
use function preg_match;
1414
use function preg_match_all;
1515
use function property_exists;
@@ -37,7 +37,7 @@ public function enterNode(Node $node): ?int
3737
return null;
3838
}
3939

40-
if (!is_array($node->stmts) || count($node->stmts) === 0) {
40+
if (!array_is_list($node->stmts) || count($node->stmts) === 0) {
4141
return null;
4242
}
4343

0 commit comments

Comments
 (0)