reactphp / promise

Promises/A implementation for PHP.
https://reactphp.org/promise/
MIT License
2.38k stars 146 forks source link

Mark `FulfilledPromise` and `RejectedPromise` as internal #164

Closed clue closed 4 years ago

clue commented 4 years ago

Use resolve() and reject() instead.

This PR introduces a BC break for the v3 Promise API by moving both classes to an internal namespace. A follow-up PR will deprecate both classes for the v2 Promise API. See #155 for more details.