Skip to content

Allow Guzzle 8 - #3

Draft
uphlewis wants to merge 1 commit into
masterfrom
feature/guzzle-8-support
Draft

uphlewis wants to merge 1 commit into
masterfrom
feature/guzzle-8-support

Conversation

@uphlewis

@uphlewis uphlewis commented Nov 3, 2026

Copy link
Copy Markdown
Member

Summary

Allow Guzzle 8. Keep Guzzle 7 support. Provider packages on upmind/provision-provider-base v5 require Guzzle 8 (upmind/provision-provider-base#79).

Package Before After
guzzlehttp/guzzle ^7.8 ^7.8 || ^8.0

Code changes

  • LinodeClient needs no change. It uses upper-case HTTP methods. It reads the response only from ClientException, which still has getResponse() in Guzzle 8. It maps every other GuzzleException to LinodeException.
  • LinodeClientTest::testApiGuzzleException() builds a RequestException instead of a TransferException. Guzzle 8 changed the TransferException constructor. The test now works on both majors.

Testing

PHP Guzzle 7.16.1 Guzzle 8.3.1
8.3 44 tests pass 44 tests pass
8.4 not run 44 tests pass
8.5 not run 44 tests pass

Follow-ups

  • Release a new version after merge. upmind/provision-provider-servers waits for it.
  • symfony/expression-language ^6.4 could allow ^7.0 || ^8.0 in a later change.

Generated by Claude Code

Allow guzzlehttp/guzzle ^7.8 || ^8.0. LinodeClient needs no change:
it uses upper-case methods, reads the response only from
ClientException, and maps other GuzzleException errors to
LinodeException.

Build a RequestException in testApiGuzzleException(). Guzzle 8
changed the TransferException constructor. The test now works on
Guzzle 7 and 8.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LQDis5diwmvepPoyjt9Uuk
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.

2 participants