diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 83672ce..8860e11 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,6 +11,7 @@ jobs: strategy: matrix: php: + - 8.5 - 8.4 - 8.3 - 8.2 diff --git a/composer.json b/composer.json index 31da6ee..202b1d9 100644 --- a/composer.json +++ b/composer.json @@ -13,13 +13,13 @@ "require": { "php": ">=5.3", "clue/json-stream": "^0.1", - "react/event-loop": "^1.2", + "react/event-loop": "^1.6", "react/http": "^1.11", - "react/promise": "^3.2 || ^2.11 || ^1.3", + "react/promise": "^3.3 || ^2.11 || ^1.3", "react/promise-stream": "^1.6", - "react/socket": "^1.16", + "react/socket": "^1.17", "react/stream": "^1.4", - "rize/uri-template": "^0.4 || ^0.3" + "rize/uri-template": "^0.4.1 || ^0.3" }, "require-dev": { "clue/caret-notation": "^0.2", diff --git a/tests/ClientTest.php b/tests/ClientTest.php index 831791c..e815ff1 100644 --- a/tests/ClientTest.php +++ b/tests/ClientTest.php @@ -29,15 +29,21 @@ public function setUpClient() $this->client = new Client(); $ref = new \ReflectionProperty($this->client, 'browser'); - $ref->setAccessible(true); + if (PHP_VERSION_ID < 80100) { + $ref->setAccessible(true); + } $ref->setValue($this->client, $this->browser); $ref = new \ReflectionProperty($this->client, 'parser'); - $ref->setAccessible(true); + if (PHP_VERSION_ID < 80100) { + $ref->setAccessible(true); + } $ref->setValue($this->client, $this->parser); $ref = new \ReflectionProperty($this->client, 'streamingParser'); - $ref->setAccessible(true); + if (PHP_VERSION_ID < 80100) { + $ref->setAccessible(true); + } $ref->setValue($this->client, $this->streamingParser); }