Skip to content

Commit 2c99b96

Browse files
committed
Use Type->isInteger() over $dimType instanceof ConstantIntegerType
1 parent 1f150cc commit 2c99b96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Analyser/MutatingScope.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4238,7 +4238,7 @@ public function specifyExpressionType(Expr $expr, Type $type, Type $nativeType,
42384238
new ObjectType(ArrayAccess::class),
42394239
new NullType(),
42404240
];
4241-
if ($dimType instanceof ConstantIntegerType) {
4241+
if ($dimType->isInteger()->yes()) {
42424242
$types[] = new StringType();
42434243
}
42444244

0 commit comments

Comments
 (0)