Skip to content

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