From 25e4923d14b6bba6d7375bf9b49b68fda9d1cd5f Mon Sep 17 00:00:00 2001 From: Niklas Keller Date: Sun, 6 Nov 2022 22:07:04 +0100 Subject: [PATCH] Add missing generics to Future --- src/Future.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Future.php b/src/Future.php index 022d3d7..19a59ab 100644 --- a/src/Future.php +++ b/src/Future.php @@ -111,6 +111,8 @@ final class Future /** * Do not forward unhandled errors to the event loop handler. + * + * @return Future */ public function ignore(): self { @@ -129,7 +131,7 @@ final class Future * * @param \Closure(T):Tr $map * - * @return Future + * @return Future */ public function map(\Closure $map): self { @@ -160,7 +162,7 @@ final class Future * * @param \Closure(\Throwable):Tr $catch * - * @return Future + * @return Future */ public function catch(\Closure $catch): self {