Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bupy7 committed Jan 6, 2023
1 parent e30eece commit 794f1ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/XmlConstructor.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,12 @@ public function toOutput()
throw new RuntimeException('The constructor is closed. You have to create new one to flush its again.');
}

$this->flushed = true;

if ($this->hasDocumentStart) {
$this->document->endDocument();
}

$this->flushed = true;

return $this->document->outputMemory();
}

Expand Down

0 comments on commit 794f1ad

Please sign in to comment.