Skip to content

Commit 36cb243

Browse files
committed
make this code more uniform with array_key_exists() handling
1 parent 1961e2d commit 36cb243

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
@@ -949,7 +949,7 @@ public function specifyTypesInCondition(
949949
} else {
950950
$varType = $scope->getType($var->var);
951951

952-
if ($varType->isArray()->yes() && $dimType->isConstantScalarValue()->no()) {
952+
if ($varType->isArray()->yes() && count($dimType->getConstantScalarTypes()) <= 1) {
953953
$types = $types->unionWith(
954954
$this->create(
955955
$var->var,

0 commit comments

Comments
 (0)