Skip to content

Commit 794f1ad

Browse files
committed
small fixes
1 parent e30eece commit 794f1ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/XmlConstructor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,12 +161,12 @@ public function toOutput()
161161
throw new RuntimeException('The constructor is closed. You have to create new one to flush its again.');
162162
}
163163

164+
$this->flushed = true;
165+
164166
if ($this->hasDocumentStart) {
165167
$this->document->endDocument();
166168
}
167169

168-
$this->flushed = true;
169-
170170
return $this->document->outputMemory();
171171
}
172172

0 commit comments

Comments
 (0)