From 2f8d2fed7f88aa0c0e00cf21d15653c05630575d Mon Sep 17 00:00:00 2001 From: David Date: Wed, 11 Jan 2023 13:51:33 +0100 Subject: [PATCH] PHP 8.2 is supported --- .github/workflows/tests.yml | 2 +- composer.json | 2 +- tests/Github/Http/CachedClient.phpt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 38b9c1e..63a6baa 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -8,7 +8,7 @@ jobs: strategy: fail-fast: false matrix: - php: [8.0, 8.1] + php: [8.0, 8.1, 8.2] name: PHP ${{ matrix.php }} tests steps: diff --git a/composer.json b/composer.json index b8baa5e..199b874 100644 --- a/composer.json +++ b/composer.json @@ -11,7 +11,7 @@ } ], "require": { - "php": ">=8.0 <8.2" + "php": ">=8.0 <8.3" }, "require-dev": { "nette/tester": "^2.4" diff --git a/tests/Github/Http/CachedClient.phpt b/tests/Github/Http/CachedClient.phpt index c597aff..37631cb 100644 --- a/tests/Github/Http/CachedClient.phpt +++ b/tests/Github/Http/CachedClient.phpt @@ -90,7 +90,7 @@ class CachingTestCase extends Tester\TestCase Assert::same($this->client, $this->client->onRequest($cb)); Assert::same($this->client, $this->client->onResponse($cb)); }, [ - [E_USER_NOTICE, "Inner onRequest called: Closure::%A%"], + [E_USER_NOTICE, 'Inner onRequest called: %a?%Closure::%A%'], [E_USER_NOTICE, 'Inner onResponse called: NULL'], ]);