Skip to content

Commit ca44a17

Browse files
committed
Update TypeSpecifier.php
1 parent f3f8508 commit ca44a17

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Analyser/TypeSpecifier.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -886,7 +886,7 @@ public function specifyTypesInCondition(
886886
$narrowToNonEmpty = true;
887887
}
888888

889-
if ($arrayArgIndex !== null && $sentinelType !== null) {
889+
if ($arrayArgIndex !== null) {
890890
$arrayArg = $expr->expr->getArgs()[$arrayArgIndex]->value;
891891
$arrayType = $scope->getType($arrayArg);
892892

0 commit comments

Comments
 (0)