WpOrg\Requests\Transport

Curl::__destructpublicWP 1.0

Destructor

Method of the class: Curl{}

No Hooks.

Returns

null. Nothing (null).

Usage

$Curl = new Curl();
$Curl->__destruct();

Curl::__destruct() code WP 7.1

public function __destruct() {
	if (is_resource($this->handle)) {
		// phpcs:ignore PHPCompatibility.FunctionUse.RemovedFunctions.curl_closeDeprecated,Generic.PHP.DeprecatedFunctions.Deprecated
		curl_close($this->handle);
	}
}