php-json-rpc-http icon indicating copy to clipboard operation
php-json-rpc-http copied to clipboard

HTTP client and server for JSON-RPC 2.0

Results 7 php-json-rpc-http issues
Sort by recently updated
recently updated
newest added

Check if $http_response_header is set before using it. This fixes #10

Here it is: https://github.com/datto/php-json-rpc-http/blob/db15a075f3562c4e8d297b9082acc5b2869bd4b4/src/Client.php#L226 and a few lines down too. That gets converted into an ErrorException in onError() so the proper send() HTTP exception handling is effectively bypassed.

Setting $code to null is now allowed here: https://github.com/datto/php-json-rpc-http/blob/db15a075f3562c4e8d297b9082acc5b2869bd4b4/src/Client.php#L454 I guess that you'll have to use 0 instead.

Implicitly marking parameter $headers as nullable is deprecated, the explicit nullable type must be used instead on line 117 in file vendor/datto/json-rpc-http/src/Client.php

"Calling stream_context_set_option() with 2 arguments is deprecated, use stream_context_set_options() instead" at vendor/datto/json-rpc-http/src/Client.php:223

Passing null to parameter #2 ($code) of type int is deprecated in vendor/datto/json-rpc-http/src/Client.php on line 461