File tree Expand file tree Collapse file tree 2 files changed +27
-4
lines changed
Expand file tree Collapse file tree 2 files changed +27
-4
lines changed Original file line number Diff line number Diff line change 11CHANGELOG for 2.x
22=================
33
4+ * 2.9.0 (2022-02-11)
5+
6+ * Feature: Support union types and address deprecation of ` ReflectionType::getClass() ` (PHP 8+).
7+ (#198 by @cdosoftei and @SimonFrings )
8+
9+ ``` php
10+ $promise->otherwise(function (OverflowException|UnderflowException $e) {
11+ echo 'Error: ' . $e->getMessage() . PHP_EOL;
12+ });
13+ ```
14+
15+ * Feature: Support intersection types (PHP 8.1+).
16+ (#195 by @bzikarsky)
17+
18+ ```php
19+ $promise->otherwise(function (OverflowException&CacheException $e) {
20+ echo 'Error: ' . $e->getMessage() . PHP_EOL;
21+ });
22+ ```
23+
24+ * Improve test suite, use GitHub actions for continuous integration (CI),
25+ update to PHPUnit 9, and add full core team to the license.
26+ (#174, #183, #186, and #201 by @SimonFrings and #211 by @clue)
27+
428* 2.8.0 (2020-05-12)
529
630 * Mark `FulfilledPromise`, `RejectedPromise` and `LazyPromise` as deprecated for Promise v2 (and remove for Promise v3).
Original file line number Diff line number Diff line change @@ -849,15 +849,14 @@ This project follows [SemVer](https://semver.org/).
849849This will install the latest supported version:
850850
851851``` bash
852- $ composer require react/promise:^2.8
852+ $ composer require react/promise:^2.9
853853```
854854
855855See also the [ CHANGELOG] ( CHANGELOG.md ) for details about version upgrades.
856856
857857This project aims to run on any platform and thus does not require any PHP
858- extensions and supports running on legacy PHP 5.4 through current PHP 7+ and HHVM.
859- It's * highly recommended to use PHP 7+* for this project due to its vast
860- performance improvements.
858+ extensions and supports running on legacy PHP 5.4 through current PHP 8+ and HHVM.
859+ It's * highly recommended to use the latest supported PHP version* for this project.
861860
862861Credits
863862-------
You can’t perform that action at this time.
0 commit comments