Merge pull request #3319 from dogmatic69/patch-1

Fix closing non resource
This commit is contained in:
Mark Story 2014-04-14 11:41:44 -04:00
commit e9c9e9697d

View file

@ -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);
}
}
}