Skip to content

Commit 584433d

Browse files
authored
Merge pull request #32 from clue-labs/php8
Support PHP 8
2 parents 3ba71e3 + 4fa698b commit 584433d

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ jobs:
1313
- ubuntu-20.04
1414
- windows-2019
1515
php:
16+
- 8.0
1617
- 7.4
1718
- 7.3
1819
- 7.2

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ $ composer require clue/zlib-react:^1.0
187187
See also the [CHANGELOG](CHANGELOG.md) for details about version upgrades.
188188

189189
This project aims to run on any platform and thus does not require any PHP
190-
extensions besides `ext-zlib` and supports running on current PHP 7+.
190+
extensions besides `ext-zlib` and supports running on PHP 7 through current PHP 8+.
191191

192192
The `ext-zlib` extension is required for handling the underlying data compression
193193
and decompression.

tests/CompressorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class CompressorTest extends TestCase
88
{
99
public function testCtorThrowsForInvalidEncoding()
1010
{
11-
$this->expectException('InvalidArgumentException');
11+
$this->expectException(PHP_VERSION_ID >= 80000 ? \ValueError::class : \InvalidArgumentException::class);
1212
new Compressor(0);
1313
}
1414
}

tests/DecompressorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class DecompressorTest extends TestCase
88
{
99
public function testCtorThrowsForInvalidEncoding()
1010
{
11-
$this->expectException('InvalidArgumentException');
11+
$this->expectException(PHP_VERSION_ID >= 80000 ? \ValueError::class : \InvalidArgumentException::class);
1212
new Decompressor(0);
1313
}
1414
}

0 commit comments

Comments
 (0)