Skip to content

Commit bbf67e6

Browse files
committed
Fix variable name in docblock description and @param declaration
1 parent be81b26 commit bbf67e6

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/functions.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
*/
5959
function reject(\Throwable $reason)

0 commit comments

Comments
 (0)