Automattic\WooCommerce\Internal\Admin\Logging\FileV2
File::close_stream()
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.
Метод класса: File{}
Хуков нет.
Возвращает
true|false
.
Использование
$File = new File(); $File->close_stream(): bool;
Код File::close_stream() File::close stream WC 9.7.1
public function close_stream(): bool { // phpcs:ignore WordPress.WP.AlternativeFunctions.file_system_read_fclose -- No suitable alternative. return fclose( $this->stream ); }