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 d4128ee commit 4d6d0c9Copy full SHA for 4d6d0c9
1 file changed
rules/TypeDeclaration/NodeAnalyzer/CallTypesResolver.php
@@ -228,6 +228,14 @@ private function isEmptyArray(Expr $expr): bool
228
private function isArrayMixedMixedType(Type $type): bool
229
{
230
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
+
239
return false;
240
}
241
0 commit comments