Skip to content

[13.x] Harden HTTP client request and fake response serialization - #60522

Merged
taylorotwell merged 4 commits into
13.xfrom
fix/http-client-guzzle-psr7-deprecations
Jun 16, 2026
Merged

taylorotwell merged 4 commits into
13.xfrom
fix/http-client-guzzle-psr7-deprecations

Conversation

@GrahamCampbell

@GrahamCampbell GrahamCampbell commented Jun 16, 2026 •

Copy link
Copy Markdown
Collaborator

This should avoid PHP 8.5 deprecation warnings about casting non-finite floats to strings, upcoming deprecations in the Guzzle 7.12/PSR 2.12 releases I am likely to do later today, and to ensure consistent errors when there's invalid input.

@taylorotwell
taylorotwell merged commit db427e6 into 13.x Jun 16, 2026
7 checks passed
@taylorotwell
taylorotwell deleted the fix/http-client-guzzle-psr7-deprecations branch June 16, 2026 15:20
binaryfire added a commit to hypervel/components-backup that referenced this pull request Oct 1, 2026
An integer URL stub outside 100-599 now throws InvalidArgumentException
instead of being used as a response body. Laravel documents that on
stubUrl(), and Hypervel now does too. The other InvalidArgumentException
annotations from the same Laravel change were already present on the
fake response and request normalization methods.

Laravel: laravel/framework#60522
Laravel: laravel/framework#60546
Source: laravel/framework master cd6e81dff3ba7a4564ac88c3949698c728d20109

Validation: HttpClientTest and FacadeDocblocksTest pass; the Http facade
is unchanged.
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