Skip to content

Commit

Permalink
parent close call use
Browse files Browse the repository at this point in the history
  • Loading branch information
IDCT Bartosz Pachołek committed Jan 21, 2020
1 parent 33a444a commit 089fbcf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/CsvWriter.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,7 @@ public function openWithFieldsNames($filename, array $fieldsNames, $mode = self:
*/
public function close(): TextWriter
{
if (is_resource($this->file)) {
fclose($this->file);
}
parent::close();

$this->fieldsNames = null;
$this->fieldsNamesCount = null;
Expand Down

0 comments on commit 089fbcf

Please sign in to comment.