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 cb1f7d7 commit d76de92Copy full SHA for d76de92
1 file changed
rules/TypeDeclaration/NodeAnalyzer/CallTypesResolver.php
@@ -225,10 +225,10 @@ private function isArrayMixedMixedType(Type $type): bool
225
{
226
if (! $type instanceof ArrayType) {
227
if ($type instanceof UnionType) {
228
- $type = $this->typeFactory->createMixedPassedOrUnionType($type->getTypes());
+ $types = $type->getTypes();
229
+ $type = $this->typeFactory->createMixedPassedOrUnionType($types);
230
231
- $types = $type->getTypes();
232
if (count($types) !== 2) {
233
return false;
234
}
0 commit comments