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 30d9791 commit 48f7b00Copy full SHA for 48f7b00
1 file changed
rules/TypeDeclaration/NodeAnalyzer/CallTypesResolver.php
@@ -224,8 +224,8 @@ private function isEmptyArray(Expr $expr): bool
224
225
private function isArrayMixedMixedType(Type $type): bool
226
{
227
- if (! $type instanceof ArrayType) {
228
- return $type instanceof ConstantArrayType && $type->getIterableKeyType() instanceof NeverType;
+ if (! $type instanceof ArrayType && ! $type instanceof ConstantArrayType) {
+ return false;
229
}
230
231
if (! $type->getItemType() instanceof MixedType && ! $type->getItemType() instanceof NeverType) {
0 commit comments