Skip to content

feat: support Guzzle 8 alongside Guzzle 7 - #10

Merged
samaxbytez merged 1 commit into
mainfrom
fix/guzzle-7-or-8
Nov 4, 2026
Merged

samaxbytez merged 1 commit into
mainfrom
fix/guzzle-7-or-8

Conversation

@samaxbytez

Copy link
Copy Markdown
Contributor

Replaces #7, which required Guzzle 8 and would have broken every install still on Guzzle 7.

  • composer.json: guzzlehttp/guzzle ^7.5 || ^8.3.
  • Transport: Guzzle 8 moved getResponse() from RequestException to ResponseException and replaced the handler-context errno with timeout classes (ConnectTimeoutException, NetworkTimeoutException). The response and timeout checks now work with both versions.
  • Tests build Guzzle exceptions through helpers in TestCase, since the constructors differ between versions.

Checked locally: tests pass on Guzzle 8.3.1, 7.16.1 and the prefer-lowest 7.x; PHPStan (against Guzzle 8) and cs-check are clean. In CI the main matrix runs Guzzle 8 and test-lowest runs Guzzle 7.

@samaxbytez
samaxbytez requested a review from a team as a code owner November 4, 2026 15:00
@samaxbytez
samaxbytez merged commit 733aa24 into main Nov 4, 2026
10 checks passed
@samaxbytez
samaxbytez deleted the fix/guzzle-7-or-8 branch November 4, 2026 15:07
@samaxbytez samaxbytez mentioned this pull request Nov 4, 2026
samaxbytez added a commit that referenced this pull request Nov 4, 2026
Releases 0.2.0: Guzzle 8 support (`guzzlehttp/guzzle` `^7.5 || ^8.3`,
#10).

Minor bump because #10 is a `feat:` (pre-1.0, per RELEASING.md). No
breaking changes; Guzzle 7 installs are unaffected.

After merge, approve the `release` deployment in Actions to create the
`v0.2.0` tag and GitHub Release.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant