Closed
Description
Per https://github.com/reactphp/promise/releases/tag/v3.0.0
Irrelevant:
- Existing instances of FulfilledPromise and RejectedPromise classes must be updated to use resolve() and reject() functions instead
- Existing instances of LazyPromise should be removed
- Any instances of some(), map(), and reduce() functions must be replaced with the any() or all() functions (I don't think we use these)
Breaking changes:
- ExtendedPromiseInterface and CancellablePromiseInterface no longer exist, existing implementations should just be PromiseInterface #1150 - Instances of existing code explicitly typecasting ExtendedPromiseInterface should be removed.
- Existing instances of resolve() and reject() needed to be updated to match the new templates of
resolve(T $value): PromiseInterface<T>
andreject(Throwable $reason): PromiseInterface<never>
#1151 - Instances of existing code need to call resolve or reject and handle errors appropriately. - Existing instances of done() must be replaced with the new rejection handling system #1152 - Instances of existing code need to be replaced with then and resolved.
Non-breaking changes:
- otherwise() and always() are deprecated, replaced by catch() and finally() (only instance I could find was Discord.php)