Revert "fix: don't close argument type. (#7)"

This reverts commit 1c425b71c6.
This commit is contained in:
azjezz 2022-11-10 19:57:54 +01:00
parent 1c425b71c6
commit 2aa6c21bba

View File

@ -28,6 +28,9 @@ final class FunctionReturnTypeProvider implements FunctionReturnTypeProviderInte
return null;
}
return $argument_type->setPossiblyUndefined(true);
$clone = clone $argument_type;
$clone->possibly_undefined = true;
return $clone;
}
}