public function sendRequest($method, $uri, array $parameters = [], array $files = [], array $server = [], $content = null, $changeHistory = true)
    {
        set_error_handler(
            function ($level, $message, $errFile, $errLine) {
                if ($this->deprecationAdviser) {
                    $this->deprecationAdviser->addWarning($message, $errFile, $errLine);
                }
            },
            E_USER_DEPRECATED
        );

        $result = parent::request($method, $uri, $parameters, $files, $server, $content, $changeHistory);

        restore_error_handler();

        return $result;
    }