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

Errors when response body is null #60

Open
Niq1982 opened this issue Jul 1, 2024 · 0 comments
Open

Errors when response body is null #60

Niq1982 opened this issue Jul 1, 2024 · 0 comments

Comments

@Niq1982
Copy link

Niq1982 commented Jul 1, 2024

return json_decode($this->body, $asArray);

Because there's no type check in the getBody() method it will throw errors when the $body property is null, since Passing null to parameter #1 ($json) of type string is deprecated.

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

No branches or pull requests

1 participant