Skip to content

Add support for Guzzle 8 - #509

Merged
freekmurze merged 2 commits into
mainfrom
freekmurze/support-guzzle-8
Jul 20, 2026
Merged

freekmurze merged 2 commits into
mainfrom
freekmurze/support-guzzle-8

Conversation

@freekmurze

Copy link
Copy Markdown
Member

Widens the guzzlehttp/guzzle and guzzlehttp/psr7 constraints to allow Guzzle 8 alongside 7. No breaking changes for Guzzle 7 users.

Guzzle 8 removed getResponse() from RequestException, so CollectUrlsObserver now reads the response via BadResponseException/TooManyRedirectsException, which expose it identically in both Guzzle 7 and 8.

The test suite and PHPStan now run against both Guzzle 7 and 8 in CI.

freekmurze and others added 2 commits July 20, 2026 23:44
Widen the guzzle and psr7 constraints to allow Guzzle 8 alongside 7.

Guzzle 8 removed getResponse() from RequestException (it now lives on
response-carrying subclasses only), so CollectUrlsObserver reads the
response via BadResponseException / TooManyRedirectsException, which
expose it identically in both Guzzle 7 and 8.

CI runs the test suite and PHPStan against both Guzzle 7 and 8.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@freekmurze
freekmurze merged commit 795808b into main Jul 20, 2026
16 checks passed
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