From 65d70d79258773f837929ecb749f220ebe142421 Mon Sep 17 00:00:00 2001 From: Lexidor Digital <31805625+lexidor@users.noreply.github.com> Date: Tue, 21 Jan 2020 22:40:00 +0100 Subject: [PATCH] Backport Ref to 4.5 (#116) --- src/Ref.php | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/Ref.php diff --git a/src/Ref.php b/src/Ref.php new file mode 100644 index 00000000..06368c4c --- /dev/null +++ b/src/Ref.php @@ -0,0 +1,28 @@ +>` + * over `Vector`. + * + * `C\reduce()` and `C\reduce_with_key()` can also be used in some situations + * to avoid this class. + */ +final class Ref { + <<__RxShallow>> + public function __construct(public T $value) {} +}