We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb35482 commit 20bd6caCopy full SHA for 20bd6ca
1 file changed
src/React/Promise/When.php
@@ -4,12 +4,12 @@
4
5
class When
6
{
7
- public static function resolve($promiseOrValue)
+ public static function resolve($promiseOrValue = null)
8
9
return Util::promiseFor($promiseOrValue);
10
}
11
12
- public static function reject($promiseOrValue)
+ public static function reject($promiseOrValue = null)
13
14
return static::resolve($promiseOrValue)->then(function ($value = null) {
15
return new RejectedPromise($value);
0 commit comments