Open ivashkevitch opened 5 years ago
The InvalidArgumentException
class is a part of the Standard PHP Library.
As of PHP 5.3.0 this extension can no longer be disabled and is therefore always available.
The minimum supported PHP version for guzzle-jsonrpc is 5.5:
Therefore, if the InvalidArgumentException
class is not declared, you are running guzzle-jsonrpc on an unsupported PHP version.
Therefore, this is not a bug.
@ivashkevitch Sorry for not responding sooner. This seems to have fallen through the cracks. It's unclear to me what you asking. Could you clarify?
biggianteye Hi. I mean these methods didn't have @throws
annotations and it is unexpected, when it throws exceptions.
src/Message/MessageFactory.php contains 2 methods: fromResponse() and createRequest() that can throws undeclared InvalidArgumentException. Fix it, please.