mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Merge pull request #3319 from dogmatic69/patch-1
Fix closing non resource
This commit is contained in:
commit
e9c9e9697d
1 changed files with 3 additions and 1 deletions
|
@ -295,7 +295,9 @@ class ConsoleOutput {
|
|||
* Clean up and close handles
|
||||
*/
|
||||
public function __destruct() {
|
||||
fclose($this->_output);
|
||||
if (is_resource($this->_output)) {
|
||||
fclose($this->_output);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue