We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35a6371 commit 60e0be5Copy full SHA for 60e0be5
Response/CurlResponse.php
@@ -233,7 +233,9 @@ public function __destruct()
233
234
$this->doDestruct();
235
} finally {
236
- curl_setopt($this->handle, \CURLOPT_VERBOSE, false);
+ if (\is_resource($this->handle) || $this->handle instanceof \CurlHandle) {
237
+ curl_setopt($this->handle, \CURLOPT_VERBOSE, false);
238
+ }
239
}
240
241
0 commit comments