Skip to content

Commit 481dcbe

Browse files
committed
PHP 8.1
1 parent 7824c42 commit 481dcbe

File tree

7 files changed

+4
-32
lines changed

7 files changed

+4
-32
lines changed

.gitattributes

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@
22
/.github/ export-ignore
33
/.gitignore export-ignore
44
/phpunit.xml.dist export-ignore
5-
/phpunit.xml.legacy export-ignore
65
/tests/ export-ignore

.github/workflows/ci.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,6 @@ jobs:
1212
matrix:
1313
php:
1414
- 8.1
15-
- 8.0
16-
- 7.4
17-
- 7.3
18-
- 7.2
19-
- 7.1
2015
steps:
2116
- uses: actions/checkout@v2
2217
- uses: shivammathur/setup-php@v2
@@ -25,6 +20,3 @@ jobs:
2520
coverage: xdebug
2621
- run: composer install
2722
- run: vendor/bin/phpunit --coverage-text
28-
if: ${{ matrix.php >= 7.3 }}
29-
- run: vendor/bin/phpunit --coverage-text -c phpunit.xml.legacy
30-
if: ${{ matrix.php < 7.3 }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ $ composer require react/async:dev-main
222222
See also the [CHANGELOG](CHANGELOG.md) for details about version upgrades.
223223

224224
This project aims to run on any platform and thus does not require any PHP
225-
extensions and supports running on PHP 7.1 through current PHP 8+.
225+
extensions and supports running on PHP 8.1+.
226226
It's *highly recommended to use the latest supported PHP version* for this project.
227227

228228
## Tests

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@
2626
}
2727
],
2828
"require": {
29-
"php": ">=7.1",
29+
"php": ">=8.1",
3030
"react/event-loop": "^1.2",
3131
"react/promise": "^2.8 || ^1.2.1"
3232
},
3333
"require-dev": {
34-
"phpunit/phpunit": "^9.3 || ^7.5"
34+
"phpunit/phpunit": "^9.3"
3535
},
3636
"suggest": {
3737
"react/event-loop": "You need an event loop for this to make sense."

phpunit.xml.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22

3-
<!-- PHPUnit configuration file with new format for PHPUnit 9.3+ -->
43
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
54
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
65
bootstrap="vendor/autoload.php"

phpunit.xml.legacy

Lines changed: 0 additions & 18 deletions
This file was deleted.

src/functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
* @throws \Throwable when the promise is rejected with a `Throwable`
4949
* @throws \UnexpectedValueException when the promise is rejected with an unexpected value (Promise API v1 or v2 only)
5050
*/
51-
function await(PromiseInterface $promise)
51+
function await(PromiseInterface $promise): mixed
5252
{
5353
$wait = true;
5454
$resolved = null;

0 commit comments

Comments
 (0)