src/Server.php
public function call($procedure, array $params)
    {
        if (!is_string($procedure)) {
            throw new \BadFunctionCallException('Expected a string');
        }

        if (!isset($this->XRLFunctions[$procedure])) {
            throw new \fpoirotte\XRL\Faults\MethodNotFoundException();
        }

        $callable = $this->XRLFunctions[$procedure];
        return $callable(...$params);
    }
public function call($procedure, array $params)
    {
        if (!is_string($procedure)) {
            throw new \BadFunctionCallException('Expected a string');
        }

        if (!isset($this->XRLFunctions[$procedure])) {
            throw new \fpoirotte\XRL\Faults\MethodNotFoundException();
        }

        $callable = $this->XRLFunctions[$procedure];
        return $callable(...$params);
    }
Call an XML-RPC procedure.

\param string $procedure
Name of the procedure to call.

\param array $params
Parameters for that procedure.

\retval mixed
The procedure's return value.