Skip to content

fixed wrong call of trigger_error() #49

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

Merged
merged 1 commit into from
Oct 16, 2020

Conversation

driehle
Copy link
Contributor

@driehle driehle commented Oct 12, 2020

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
License MIT

What's in this PR?

Your call to trigger_error() in Client.php, line 63 is wrong, as the parameters $error_msg and $error_type are switched. This lead to the following error in PHP 7.4:

PHP Error: trigger_error() expects parameter 2 to be int, string given, line 63 in /[...]/vendor/php-http/socket-client/src/Client.php

This PR fixes this issue by bringing the parameters into correct order.

Merging and releasing 2.0.1 is kindly requested.

@joelwurtz joelwurtz merged commit b891da7 into php-http:master Oct 16, 2020
@joelwurtz
Copy link
Member

Thanks @driehle merged and 2.0.1 released

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.

3 participants