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 1
1
CHANGELOG for 2.x
2
2
=================
3
3
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
+
4
28
* 2.8.0 (2020-05-12)
5
29
6
30
* 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/).
849
849
This will install the latest supported version:
850
850
851
851
``` bash
852
- $ composer require react/promise:^2.8
852
+ $ composer require react/promise:^2.9
853
853
```
854
854
855
855
See also the [ CHANGELOG] ( CHANGELOG.md ) for details about version upgrades.
856
856
857
857
This 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.
861
860
862
861
Credits
863
862
-------
You can’t perform that action at this time.
0 commit comments