function FileOutput::__destruct

Same name and namespace in other branches
  1. 11.x core/tests/PHPStan/ErrorFormatter/FileOutput.php \Drupal\PHPStan\ErrorFormatter\FileOutput::__destruct()

Ensures the file is closed on destruction.

File

core/tests/PHPStan/ErrorFormatter/FileOutput.php, line 48

Class

FileOutput
Output implementation that writes to a file.

Namespace

Drupal\PHPStan\ErrorFormatter

Code

public function __destruct() {
  fclose($this->handle);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.