Skip to content

Commit

Permalink
fix: don't close argument type.
Browse files Browse the repository at this point in the history
  • Loading branch information
azjezz committed Nov 10, 2022
1 parent acec876 commit 2c38013
Showing 1 changed file with 1 addition and 4 deletions.
Expand Up @@ -28,9 +28,6 @@ public static function getFunctionReturnType(FunctionReturnTypeProviderEvent $ev
return null;
}

$clone = clone $argument_type;
$clone->possibly_undefined = true;

return $clone;
return $argument_type->setPossiblyUndefined(true);
}
}

0 comments on commit 2c38013

Please sign in to comment.