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

[8.x] Added reason phrase getter to Response class #39972

Merged
merged 2 commits into from
Dec 10, 2021

Conversation

markvesterskov
Copy link
Contributor

I am interfacing with a very legacy XML API in my application, which sends back error hints in the reasonPhrase field of a response - not super kosher, but it works, i guess.

This simply adds a getter to Illuminate\Http\Client\Response to get the reason phrase from the underlying PSR response.

@taylorotwell taylorotwell merged commit ad0ebac into laravel:8.x Dec 10, 2021
@taylorotwell
Copy link
Member

Thanks for contributing to Laravel! ❤️

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