Skip to content

Commit c5c325f

Browse files
committed
Fix
1 parent d76de92 commit c5c325f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

rules/TypeDeclaration/NodeAnalyzer/CallTypesResolver.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,9 +226,10 @@ private function isArrayMixedMixedType(Type $type): bool
226226
if (! $type instanceof ArrayType) {
227227
if ($type instanceof UnionType) {
228228
$types = $type->getTypes();
229-
$type = $this->typeFactory->createMixedPassedOrUnionType($types);
229+
$checkedType = $this->typeFactory->createMixedPassedOrUnionType($types);
230230

231-
if ($type instanceof UnionType) {
231+
if ($checkedType instanceof UnionType) {
232+
$types = $checkedType->getTypes();
232233
if (count($types) !== 2) {
233234
return false;
234235
}

0 commit comments

Comments
 (0)