We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0afcd7b commit b08f773Copy full SHA for b08f773
1 file changed
src/Analyser/TypeSpecifier.php
@@ -1078,7 +1078,7 @@ public function specifyTypesInCondition(
1078
} else {
1079
$varType = $scope->getType($var->var);
1080
1081
- if ($varType->isArray()->yes() && $dimType->isConstantScalarValue()->no()) {
+ if ($varType->isArray()->yes() && count($dimType->getConstantScalarTypes()) <= 1) {
1082
$types = $types->unionWith(
1083
$this->create(
1084
$var->var,
0 commit comments