Skip to content

Commit 02b6c97

Browse files
committed
Full support for PHP 8.1 and PHP 8.0
1 parent 12728b4 commit 02b6c97

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
- "7.2"
2121
- "7.3"
2222
- "7.4"
23+
- "8.0"
24+
- "8.1"
2325
dependencies:
2426
- "highest"
2527
include:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ composer require cboden/ratchet:^0.4.4
101101
See also the [CHANGELOG](CHANGELOG.md) for details about version upgrades.
102102

103103
This project aims to run on any platform and thus does not require any PHP
104-
extensions and supports running on legacy PHP 5.4 through PHP 7.4+ with limited support for PHP 8+.
104+
extensions and supports running on legacy PHP 5.4 through PHP 8.1+ with limited support for PHP 8.2+.
105105
It's *highly recommended to use the latest supported PHP version* for this project.
106106

107107
See above note about [Reviving Ratchet](#reviving-ratchet) for newer PHP support.

tests/unit/AbstractConnectionDecoratorTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public function testWarningGettingNothing() {
138138
$error = false;
139139
set_error_handler(function () use (&$error) {
140140
$error = true;
141-
}, E_NOTICE);
141+
}, PHP_VERSION_ID >= 80000 ? E_WARNING : E_NOTICE);
142142

143143
$var = $this->mock->nonExistant;
144144

@@ -152,7 +152,7 @@ public function testWarningGettingNothingLevel1() {
152152
$error = false;
153153
set_error_handler(function () use (&$error) {
154154
$error = true;
155-
}, E_NOTICE);
155+
}, PHP_VERSION_ID >= 80000 ? E_WARNING : E_NOTICE);
156156

157157
$var = $this->l1->nonExistant;
158158

@@ -166,7 +166,7 @@ public function testWarningGettingNothingLevel2() {
166166
$error = false;
167167
set_error_handler(function () use (&$error) {
168168
$error = true;
169-
}, E_NOTICE);
169+
}, PHP_VERSION_ID >= 80000 ? E_WARNING : E_NOTICE);
170170

171171
$var = $this->l2->nonExistant;
172172

0 commit comments

Comments
 (0)