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 88 * @author Joel Wurtz <joel.wurtz@gmail.com>
99 *
1010 * @template-covariant T
11+ *
1112 * @implements Promise<T>
1213 */
1314final class FulfilledPromise implements Promise
Original file line number Diff line number Diff line change @@ -38,10 +38,11 @@ interface Promise
3838 * If you do not care about one of the cases, you can set the corresponding callable to null
3939 * The callback will be called when the value arrived and never more than once.
4040 *
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
4242 * @param callable(\Exception): V|null $onRejected called when an exception occurs
4343 *
4444 * @return Promise<V> a new resolved promise with value of the executed callback (onFulfilled / onRejected)
45+ *
4546 * @template V
4647 */
4748 public function then (callable $ onFulfilled = null , callable $ onRejected = null );
Original file line number Diff line number Diff line change 88 * @author Joel Wurtz <joel.wurtz@gmail.com>
99 *
1010 * @template-covariant T
11+ *
1112 * @implements Promise<T>
1213 */
1314final class RejectedPromise implements Promise
You can’t perform that action at this time.
0 commit comments