Skip to content

Commit 48f7b00

Browse files
committed
fix
1 parent 30d9791 commit 48f7b00

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

rules/TypeDeclaration/NodeAnalyzer/CallTypesResolver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,8 @@ private function isEmptyArray(Expr $expr): bool
224224

225225
private function isArrayMixedMixedType(Type $type): bool
226226
{
227-
if (! $type instanceof ArrayType) {
228-
return $type instanceof ConstantArrayType && $type->getIterableKeyType() instanceof NeverType;
227+
if (! $type instanceof ArrayType && ! $type instanceof ConstantArrayType) {
228+
return false;
229229
}
230230

231231
if (! $type->getItemType() instanceof MixedType && ! $type->getItemType() instanceof NeverType) {

0 commit comments

Comments
 (0)