Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
- ubuntu-20.04
- windows-2019
php:
- 8.0
- 7.4
- 7.3
- 7.2
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ $ composer require clue/zlib-react:^1.0
See also the [CHANGELOG](CHANGELOG.md) for details about version upgrades.

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

The `ext-zlib` extension is required for handling the underlying data compression
and decompression.
Expand Down
2 changes: 1 addition & 1 deletion tests/CompressorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class CompressorTest extends TestCase
{
public function testCtorThrowsForInvalidEncoding()
{
$this->expectException('InvalidArgumentException');
$this->expectException(PHP_VERSION_ID >= 80000 ? \ValueError::class : \InvalidArgumentException::class);
new Compressor(0);
}
}
2 changes: 1 addition & 1 deletion tests/DecompressorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class DecompressorTest extends TestCase
{
public function testCtorThrowsForInvalidEncoding()
{
$this->expectException('InvalidArgumentException');
$this->expectException(PHP_VERSION_ID >= 80000 ? \ValueError::class : \InvalidArgumentException::class);
new Decompressor(0);
}
}