diff --git a/Services/Curl.php b/Services/Curl.php index 93a5bf2..20cc2f9 100644 --- a/Services/Curl.php +++ b/Services/Curl.php @@ -95,7 +95,7 @@ public function sendRequest($url, $method, array $options = array(), $payload = $curlMetaData = (object) curl_getinfo($this->curl); $this->curlOptionsHandler->reset(); - function_exists(curl_reset($this->curl)) ? curl_reset($this->curl) : curl_setopt_array($this->curl, $this->curlOptionsHandler->getOptions()); + function_exists('curl_reset') ? curl_reset($this->curl) : curl_setopt_array($this->curl, $this->curlOptionsHandler->getOptions()); return $this->createResponse($curlResponse, $curlMetaData); }