Skip to content

Commit b08f773

Browse files
committed
make this code more uniform with array_key_exists() handling
1 parent 0afcd7b commit b08f773

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
@@ -1078,7 +1078,7 @@ public function specifyTypesInCondition(
10781078
} else {
10791079
$varType = $scope->getType($var->var);
10801080

1081-
if ($varType->isArray()->yes() && $dimType->isConstantScalarValue()->no()) {
1081+
if ($varType->isArray()->yes() && count($dimType->getConstantScalarTypes()) <= 1) {
10821082
$types = $types->unionWith(
10831083
$this->create(
10841084
$var->var,

0 commit comments

Comments
 (0)