the-kbA-team / json-rpc

Simple JSON-RPC PHP client/server that just works.
https://packagist.org/packages/kba-team/json-rpc
MIT License
0 stars 0 forks source link

Client execute() return type is missing mixed #13

Closed gregor-j closed 1 month ago

gregor-j commented 1 month ago

\JsonRPC\Client::execute() defines $this|Exception|Client as return types. Actually it should be $this|Exception|Client|array|null, because ResponseParser::parse(), which is called by Client::sendPayload(), returns array|Exception|null.