diff --git a/src/Managers/RequestManager.php b/src/Managers/RequestManager.php index 40cc75c..4792f09 100644 --- a/src/Managers/RequestManager.php +++ b/src/Managers/RequestManager.php @@ -34,10 +34,9 @@ public function sendRequest($method, $url, $options = []) - $request = new Request($method, $url); - return call_user_func( - [$this->httpAdapter, 'sendRequest'], - $request - ); + $request = new Request($method, $url); + $response = $this->httpAdapter->sendRequest($request); + + return $response; } }