Automattic\WooCommerce\Internal\Admin\Logging\FileV2

File::close_streampublicWC 1.0

Close the stream for this file.

The stream will also close automatically when the class instance destructs, but this can be useful for avoiding having a large number of streams open simultaneously.

Method of the class: File{}

No Hooks.

Returns

true|false.

Usage

$File = new File();
$File->close_stream(): bool;

File::close_stream() code WC 9.8.5

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