Automattic\WooCommerce\Internal\Admin\Logging\FileV2

File::__destruct()publicWC 1.0

Make sure open streams are closed.

Method of the class: File{}

No Hooks.

Return

null. Nothing (null).

Usage

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

File::__destruct() code WC 9.3.3

public function __destruct() {
	if ( is_resource( $this->stream ) ) {
		// phpcs:ignore WordPress.WP.AlternativeFunctions.file_system_read_fclose -- No suitable alternative.
		fclose( $this->stream );
	}
}