Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: v2
Choose a base branch
from

Conversation

gdebrauwer
Copy link

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 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