From 879d1f908b035fef717ce8ccf670b9a6e5134d9f Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 27 Oct 2026 02:24:40 +0000 Subject: [PATCH] chore(deps): allow guzzlehttp/guzzle ^8.3 alongside ^7.0 A hard switch to Guzzle 8 would drop illuminate/http 11 and 12, which only accept guzzlehttp/guzzle ^7.8.2. The SDK does not call removed Guzzle 8 APIs, so both majors stay installable. Co-authored-by: Tim --- .github/workflows/run-tests.yml | 35 +++++++++++++++++++++++++++++++++ composer.json | 2 +- 2 files changed, 36 insertions(+), 1 deletion(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 64bbaec..a7d4173 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -43,3 +43,38 @@ jobs: - name: Execute tests run: composer test + + # orchestra/testbench 9.* (Laravel 11) can only resolve Guzzle 7. + # This job installs the root constraints as published, which selects + # illuminate/http 13.26+ and Guzzle 8. + guzzle-8: + runs-on: ubuntu-latest + name: guzzle-8 - prefer-stable + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: 8.3 + extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo + coverage: none + + - name: Setup problem matchers + run: | + echo "::add-matcher::${{ runner.tool_cache }}/php.json" + echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" + + - name: Install dependencies + run: composer update --prefer-stable --prefer-dist --no-interaction + + - name: Assert Guzzle 8 is installed + run: composer show guzzlehttp/guzzle | grep -E '^versions +: \* 8\.' + + - name: Execute tests + run: composer test + + - name: PHPStan + run: composer phpstan diff --git a/composer.json b/composer.json index 8c97140..33e0eca 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,7 @@ ], "require": { "php": "^8.3|^8.4|^8.5", - "guzzlehttp/guzzle": "^7.0", + "guzzlehttp/guzzle": "^7.0 || ^8.3", "illuminate/http": "^11.0|^12.0|^13.2.0" }, "require-dev": {