protected function curlExec($curlHandle): string
    {
        $this->headerLinesMap[(int) $curlHandle] = [];

        $result = curl_exec($curlHandle);
        if (false === $result) {
            $result = '';
        }

        return $result;
    }
protected function curlExec($curlHandle): string
    {
        $this->headerLinesMap[(int) $curlHandle] = [];

        $result = curl_exec($curlHandle);
        if (false === $result) {
            $result = '';
        }

        return $result;
    }
protected function curlExec ( $ curlHandle ) : string { $ this -> headerLinesMap [ ( int ) $ curlHandle ] = [ ] ; $ result = curl_exec ( $ curlHandle ) ; if ( false === $ result ) { $ result = '' ; } return $ result ; }
Calls curl_exec.

This method exists so it can easily be overridden and mocked.

@param resource $curlHandle
Calls curl_exec .