jsonrpc
jsonrpc copied to clipboard
variadic params for method
If we have a lot of parameters and want to validate them via some framework validators, it could be useful to let users to pass params to method as a variadic param. e.g.
public function methodName(...$params)
{
// some validations here
}
It could be checked with ReflectionParameter::isVariadic method.
I could implement it and create a PR. Please, let me know, if this repo is still alive
Sure it is still alive, but hasn't had much love for a bit. A PR would be great - thanks