Skip to content

[12.x] Add throwUnless() to Illuminate\Http\Client\Response - #57951

Merged
taylorotwell merged 2 commits into
laravel:12.xfrom
CasEbb:add-throw-unless-to-http-client-response
Nov 27, 2025
Merged

taylorotwell merged 2 commits into
laravel:12.xfrom
CasEbb:add-throw-unless-to-http-client-response

Conversation

@CasEbb

@CasEbb CasEbb commented Nov 27, 2025

Copy link
Copy Markdown
Contributor

This PR adds throwUnless() to the HTTP client's response object that's documented in https://laravel.com/docs/12.x/http-client#throwing-exceptions but apparently has only been implemented on PendingRequest.

@taylorotwell
taylorotwell merged commit dca4fb0 into laravel:12.x Nov 27, 2025
75 of 76 checks passed
akyrey pushed a commit to akyrey/framework that referenced this pull request Dec 29, 2025
…vel#57951)

* Add failing test

* Implement `throwUnless()` on `Illuminate\Http\Client\Response`
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