Skip to content
This repository was archived by the owner on Nov 20, 2025. It is now read-only.

Bugfix: failed exception treated as successful should not trigger exception in pool#12

Open
gdebrauwer wants to merge 1 commit into
saloonphp:v2from
gdebrauwer:failed-response-not-treated-as-failure-fix
Open

Bugfix: failed exception treated as successful should not trigger exception in pool#12
gdebrauwer wants to merge 1 commit into
saloonphp:v2from
gdebrauwer:failed-response-not-treated-as-failure-fix

Conversation

@gdebrauwer

Copy link
Copy Markdown

Linked to saloonphp/saloon#314 (test will succeed when code of that PR is merged)

If a failed response should not be treated as failure because the hasRequestFailed returns false, then the Laravel Http Sender currently throws a Can only throw objects PHP error. That is caused by the fact that the toException() method on the response returns null and you can not throw null.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant