We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1f3132 commit c3302f8Copy full SHA for c3302f8
src/Fixable/PhpPrinterIndentationDetectorVisitor.php
@@ -7,9 +7,9 @@
7
use PhpParser\Node;
8
use PhpParser\NodeVisitor;
9
use PhpParser\NodeVisitorAbstract;
10
+use function array_is_list;
11
use function count;
12
use function in_array;
-use function is_array;
13
use function preg_match;
14
use function preg_match_all;
15
use function property_exists;
@@ -37,7 +37,7 @@ public function enterNode(Node $node): ?int
37
return null;
38
}
39
40
- if (!is_array($node->stmts) || count($node->stmts) === 0) {
+ if (!array_is_list($node->stmts) || count($node->stmts) === 0) {
41
42
43
0 commit comments