You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ExtendedPromiseInterface extends PromiseInterface, and Promise v2 implements ExtendedPromiseInterface, so instead of replacing the existing typehinting to PromiseInterface we could just use React\Promise\Promise, which would overcome the hurdle and be better for futureproofing code. This seems to be the ReactPHP developers' intent as well, given they have made all classes final to encourage composition.
Per https://github.com/reactphp/promise/releases/tag/v3.0.0
Irrelevant:
Breaking changes:
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.Non-breaking changes:
The text was updated successfully, but these errors were encountered: