From 393556cd29add342285f2777e9e7d3b45c48d6ef Mon Sep 17 00:00:00 2001 From: David Buchmann Date: Wed, 10 Dec 2025 18:09:26 +0100 Subject: [PATCH 1/6] test with php 8.5 --- .github/workflows/ci.yml | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b38e843..51eb600 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,11 +12,11 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - php: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4'] + php: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5'] steps: - name: Checkout code - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setup PHP uses: shivammathur/setup-php@v2 @@ -25,10 +25,6 @@ jobs: tools: composer:v2 coverage: none - - name: Emulate PHP 8.3 - run: composer config platform.php 8.3.999 - if: matrix.php == '8.4' - - name: Install dependencies run: composer update --prefer-dist --no-interaction --no-progress @@ -40,11 +36,11 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - php: ['7.1', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4'] + php: ['7.1', '7.4', '8.0', '8.5'] steps: - name: Checkout code - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setup PHP uses: shivammathur/setup-php@v2 @@ -53,10 +49,6 @@ jobs: tools: composer:v2 coverage: none - - name: Emulate PHP 8.3 - run: composer config platform.php 8.3.999 - if: matrix.php == '8.4' - - name: Install dependencies run: | composer require "sebastian/comparator:^3.0.2" --no-interaction --no-update @@ -71,7 +63,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setup PHP uses: shivammathur/setup-php@v2 From dd1ee205ab5228d24d7b15ec4c5d391b4fdb3ec7 Mon Sep 17 00:00:00 2001 From: Christopher Georg Date: Sat, 21 Nov 2026 12:20:51 +0100 Subject: [PATCH 2/6] feat: add support for PHP 8.5 --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 7391770..c5e5e93 100644 --- a/composer.json +++ b/composer.json @@ -25,8 +25,8 @@ "psr/http-message": "^1.0 || ^2.0" }, "require-dev": { - "friends-of-phpspec/phpspec-code-coverage": "^4.1 || ^5.0 || ^6.0", - "phpspec/phpspec": "^5.1 || ^6.0 || ^7.0" + "friends-of-phpspec/phpspec-code-coverage": "^4.1 || ^5.0 || ^6.0 || ^7.0", + "phpspec/phpspec": "^5.1 || ^6.0 || ^7.0 || ^8.3" }, "autoload": { "psr-4": { From 13599f0bead8552907fa51d80dc2dad9f9343be0 Mon Sep 17 00:00:00 2001 From: Christopher Georg Date: Sat, 21 Nov 2026 12:23:44 +0100 Subject: [PATCH 3/6] feat: add support for PHP 8.5 --- src/Promise/HttpFulfilledPromise.php | 4 ++++ src/Promise/HttpRejectedPromise.php | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/src/Promise/HttpFulfilledPromise.php b/src/Promise/HttpFulfilledPromise.php index ccdf48e..a5a7e2e 100644 --- a/src/Promise/HttpFulfilledPromise.php +++ b/src/Promise/HttpFulfilledPromise.php @@ -18,6 +18,10 @@ public function __construct(ResponseInterface $response) $this->response = $response; } + /** + * @param (callable(ResponseInterface): ResponseInterface)|null $onFulfilled + * @param callable|null $onRejected + */ public function then(?callable $onFulfilled = null, ?callable $onRejected = null) { if (null === $onFulfilled) { diff --git a/src/Promise/HttpRejectedPromise.php b/src/Promise/HttpRejectedPromise.php index a489ad4..6784fd7 100644 --- a/src/Promise/HttpRejectedPromise.php +++ b/src/Promise/HttpRejectedPromise.php @@ -4,6 +4,7 @@ use Http\Client\Exception; use Http\Promise\Promise; +use Psr\Http\Message\ResponseInterface; final class HttpRejectedPromise implements Promise { @@ -17,6 +18,10 @@ public function __construct(Exception $exception) $this->exception = $exception; } + /** + * @param callable|null $onFulfilled + * @param (callable(Exception): (ResponseInterface|Promise))|null $onRejected + */ public function then(?callable $onFulfilled = null, ?callable $onRejected = null) { if (null === $onRejected) { From 39463d4f19a1ea32c2819ee801aa41a848af5801 Mon Sep 17 00:00:00 2001 From: Christopher Georg Date: Sat, 21 Nov 2026 12:28:08 +0100 Subject: [PATCH 4/6] feat: add support for PHP 8.5 --- .github/workflows/ci.yml | 10 +++++----- .github/workflows/static.yml | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 51eb600..5a66c0c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,11 +12,11 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - php: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5'] + php: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5', '8.6'] steps: - name: Checkout code - uses: actions/checkout@v6 + uses: actions/checkout@v7 - name: Setup PHP uses: shivammathur/setup-php@v2 @@ -36,11 +36,11 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - php: ['7.1', '7.4', '8.0', '8.5'] + php: ['7.1', '7.4', '8.0', '8.5', '8.6'] steps: - name: Checkout code - uses: actions/checkout@v6 + uses: actions/checkout@v7 - name: Setup PHP uses: shivammathur/setup-php@v2 @@ -63,7 +63,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v6 + uses: actions/checkout@v7 - name: Setup PHP uses: shivammathur/setup-php@v2 diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index 143e55e..bbf2666 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -13,7 +13,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v7 - name: Remove phpspec run: composer remove --dev friends-of-phpspec/phpspec-code-coverage phpspec/phpspec @@ -29,7 +29,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v7 - name: PHP-CS-Fixer uses: docker://oskarstark/php-cs-fixer-ga From d297bb4d815e2e55c50a8629a5d5cf0046df459b Mon Sep 17 00:00:00 2001 From: Christopher Georg Date: Sat, 21 Nov 2026 12:28:57 +0100 Subject: [PATCH 5/6] feat: add support for PHP 8.5 --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5a66c0c..83a85d5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - php: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5', '8.6'] + php: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5'] steps: - name: Checkout code @@ -36,7 +36,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - php: ['7.1', '7.4', '8.0', '8.5', '8.6'] + php: ['7.1', '7.4', '8.0', '8.5'] steps: - name: Checkout code From dbf79369e0f298c504be02be3e2d72a555749d20 Mon Sep 17 00:00:00 2001 From: Christopher Georg Date: Sat, 21 Nov 2026 12:31:19 +0100 Subject: [PATCH 6/6] feat: add support for PHP 8.5 --- src/Promise/HttpFulfilledPromise.php | 1 - src/Promise/HttpRejectedPromise.php | 1 - 2 files changed, 2 deletions(-) diff --git a/src/Promise/HttpFulfilledPromise.php b/src/Promise/HttpFulfilledPromise.php index a5a7e2e..09c7e75 100644 --- a/src/Promise/HttpFulfilledPromise.php +++ b/src/Promise/HttpFulfilledPromise.php @@ -20,7 +20,6 @@ public function __construct(ResponseInterface $response) /** * @param (callable(ResponseInterface): ResponseInterface)|null $onFulfilled - * @param callable|null $onRejected */ public function then(?callable $onFulfilled = null, ?callable $onRejected = null) { diff --git a/src/Promise/HttpRejectedPromise.php b/src/Promise/HttpRejectedPromise.php index 6784fd7..0bd878e 100644 --- a/src/Promise/HttpRejectedPromise.php +++ b/src/Promise/HttpRejectedPromise.php @@ -19,7 +19,6 @@ public function __construct(Exception $exception) } /** - * @param callable|null $onFulfilled * @param (callable(Exception): (ResponseInterface|Promise))|null $onRejected */ public function then(?callable $onFulfilled = null, ?callable $onRejected = null)