From a584f92d81a29cc61a75d2dd15f9c5096255293e Mon Sep 17 00:00:00 2001 From: Cees-Jan Kiewiet Date: Sat, 21 Jan 2023 14:51:40 +0100 Subject: [PATCH] Template params can only have one argument The fact that a promise can also be rejected with a Throwable and/or Exception is implied and there is no need to also define that here. Refs: https://github.com/reactphp/promise/pull/223 --- src/functions.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/functions.php b/src/functions.php index b72bf36..1e80087 100644 --- a/src/functions.php +++ b/src/functions.php @@ -129,10 +129,10 @@ * For more details on the promise primitives, please refer to the * [Promise documentation](https://github.com/reactphp/promise#functions). * - * @param PromiseInterface $promise + * @param PromiseInterface $promise * @param float $time * @param ?LoopInterface $loop - * @return PromiseInterface + * @return PromiseInterface */ function timeout(PromiseInterface $promise, $time, LoopInterface $loop = null) { @@ -219,7 +219,7 @@ function timeout(PromiseInterface $promise, $time, LoopInterface $loop = null) * * @param float $time * @param ?LoopInterface $loop - * @return PromiseInterface + * @return PromiseInterface */ function sleep($time, LoopInterface $loop = null) { @@ -275,7 +275,7 @@ function sleep($time, LoopInterface $loop = null) * * @param float $time * @param ?LoopInterface $loop - * @return PromiseInterface + * @return PromiseInterface * @deprecated 1.8.0 See `sleep()` instead * @see sleep() */ @@ -318,7 +318,7 @@ function resolve($time, LoopInterface $loop = null) * * @param float $time * @param LoopInterface $loop - * @return PromiseInterface + * @return PromiseInterface * @deprecated 1.8.0 See `sleep()` instead * @see sleep() */