File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -41,19 +41,19 @@ function resolve($promiseOrValue = null)
4141}
4242
4343/**
44- * Creates a rejected promise for the supplied `$promiseOrValue `.
44+ * Creates a rejected promise for the supplied `$reason `.
4545 *
46- * If `$promiseOrValue ` is a value, it will be the rejection value of the
46+ * If `$reason ` is a value, it will be the rejection value of the
4747 * returned promise.
4848 *
49- * If `$promiseOrValue ` is a promise, its completion value will be the rejected
49+ * If `$reason ` is a promise, its completion value will be the rejected
5050 * value of the returned promise.
5151 *
5252 * This can be useful in situations where you need to reject a promise without
5353 * throwing an exception. For example, it allows you to propagate a rejection with
5454 * the value of another promise.
5555 *
56- * @param \Throwable $promiseOrValue
56+ * @param \Throwable $reason
5757 * @return PromiseInterface
5858 */
5959function reject (\Throwable $ reason )
You can’t perform that action at this time.
0 commit comments