Skip to content

Commit 4d6d0c9

Browse files
committed
Fix
1 parent d4128ee commit 4d6d0c9

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

rules/TypeDeclaration/NodeAnalyzer/CallTypesResolver.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,14 @@ private function isEmptyArray(Expr $expr): bool
228228
private function isArrayMixedMixedType(Type $type): bool
229229
{
230230
if (! $type instanceof ArrayType) {
231+
if ($type instanceof UnionType) {
232+
foreach ($type->getTypes() as $subType) {
233+
if ($subType instanceof ArrayType && $this->isArrayMixedMixedType($subType)) {
234+
return true;
235+
}
236+
}
237+
}
238+
231239
return false;
232240
}
233241

0 commit comments

Comments
 (0)