Skip to content

Commit a0bff63

Browse files
committed
added comment
1 parent 50df3b6 commit a0bff63

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Analyser/TypeSpecifier.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,7 @@ public function specifyTypesInCondition(
338338
if (
339339
$context->true()
340340
&& !$orEqual
341+
// constant offsets are handled via HasOffsetType/HasOffsetValueType
341342
&& !$leftType instanceof ConstantIntegerType
342343
&& $argType->isList()->yes()
343344
&& IntegerRangeType::fromInterval(0, null)->isSuperTypeOf($leftType)->yes()

0 commit comments

Comments
 (0)