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

Exception\Http\StatusUnknown: add perfunctory unit tests #552

Merged
merged 2 commits into from
Sep 23, 2021

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Sep 17, 2021

Exception\Http\StatusUnknown: add perfunctory unit test

Exception\Http\StatusUnknown: minor bug fix

The default value of the Requests\Response::$status_code property is false and that value is also meant to be used for non-blocking errors.

If, in that case, as StatusUnknown error would be thrown, the $error_code for the Exception would be set to the invalid value false, while this should always be an integer.

Fixed now.

Related to #497

The default value of the `Requests\Response::$status_code` property is `false` and that value is also meant to be used for non-blocking errors.

If, in that case, as `StatusUnknown` error would be thrown, the `$error_code` for the Exception would be set to the invalid value `false`, while this should always be an integer.

Fixed now.
@jrfnl jrfnl added this to the 2.0.0 milestone Sep 17, 2021
@schlessera schlessera merged commit d225690 into develop Sep 23, 2021
@schlessera schlessera deleted the feature/statusunknownexception-add-tests branch September 23, 2021 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants