We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7274bd commit cb7a9f3Copy full SHA for cb7a9f3
src/Analyser/TypeSpecifier.php
@@ -930,7 +930,7 @@ public function specifyTypesInCondition(
930
} else {
931
$varType = $scope->getType($var->var);
932
933
- if ($varType->isArray()->yes() && $dimType->isConstantScalarValue()->no()) {
+ if ($varType->isArray()->yes() && count($dimType->getConstantScalarTypes()) <= 1) {
934
$types = $types->unionWith(
935
$this->create(
936
$var->var,
0 commit comments