We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1961e2d commit 36cb243Copy full SHA for 36cb243
1 file changed
src/Analyser/TypeSpecifier.php
@@ -949,7 +949,7 @@ public function specifyTypesInCondition(
949
} else {
950
$varType = $scope->getType($var->var);
951
952
- if ($varType->isArray()->yes() && $dimType->isConstantScalarValue()->no()) {
+ if ($varType->isArray()->yes() && count($dimType->getConstantScalarTypes()) <= 1) {
953
$types = $types->unionWith(
954
$this->create(
955
$var->var,
0 commit comments