Skip to content

Commit ffa8033

Browse files
committed
Compatible with PHP8, remove (string)$curl_handle.
1 parent d8c37a2 commit ffa8033

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/OSS/Http/RequestCore.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -844,7 +844,7 @@ public function send_request($parse = false)
844844
$this->response = curl_exec($curl_handle);
845845

846846
if ($this->response === false) {
847-
throw new RequestCore_Exception('cURL resource: ' . (string)$curl_handle . '; cURL error: ' . curl_error($curl_handle) . ' (' . curl_errno($curl_handle) . ')');
847+
throw new RequestCore_Exception('cURL error: ' . curl_error($curl_handle) . ' (' . curl_errno($curl_handle) . ')');
848848
}
849849

850850
$parsed_response = $this->process_response($curl_handle, $this->response);

0 commit comments

Comments
 (0)