Skip to content

Commit 770b08c

Browse files
committed
Fix 7.4 test
1 parent c249768 commit 770b08c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/Analyser/MutatingScope.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3885,8 +3885,14 @@ public function getFunctionType($type, bool $isNullable, bool $isVariadic): Type
38853885
false,
38863886
));
38873887
}
3888+
3889+
return TypeCombinator::intersect(new ArrayType(new IntegerType(), $this->getFunctionType(
3890+
$type,
3891+
$isNullable,
3892+
false,
3893+
)), new AccessoryArrayListType());
38883894
}
3889-
return $this->initializerExprTypeResolver->getFunctionType($type, $isNullable, $isVariadic, InitializerExprContext::fromScope($this));
3895+
return $this->initializerExprTypeResolver->getFunctionType($type, $isNullable, false, InitializerExprContext::fromScope($this));
38903896
}
38913897

38923898
private static function intersectButNotNever(Type $nativeType, Type $inferredType): Type

0 commit comments

Comments
 (0)