File tree Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 8
8
* @author Joel Wurtz <joel.wurtz@gmail.com>
9
9
*
10
10
* @template-covariant T
11
+ *
11
12
* @implements Promise<T>
12
13
*/
13
14
final class FulfilledPromise implements Promise
Original file line number Diff line number Diff line change @@ -38,10 +38,11 @@ interface Promise
38
38
* If you do not care about one of the cases, you can set the corresponding callable to null
39
39
* The callback will be called when the value arrived and never more than once.
40
40
*
41
- * @param callable(T): V|null $onFulfilled called when a response will be available
41
+ * @param callable(T): V|null $onFulfilled called when a response will be available
42
42
* @param callable(\Exception): V|null $onRejected called when an exception occurs
43
43
*
44
44
* @return Promise<V> a new resolved promise with value of the executed callback (onFulfilled / onRejected)
45
+ *
45
46
* @template V
46
47
*/
47
48
public function then (callable $ onFulfilled = null , callable $ onRejected = null );
Original file line number Diff line number Diff line change 8
8
* @author Joel Wurtz <joel.wurtz@gmail.com>
9
9
*
10
10
* @template-covariant T
11
+ *
11
12
* @implements Promise<T>
12
13
*/
13
14
final class RejectedPromise implements Promise
You can’t perform that action at this time.
0 commit comments