Skip to content

Commit

Permalink
Merge pull request #9 from pmzandbergen/patch-1
Browse files Browse the repository at this point in the history
fix: PHP >= 8.0 compatibility for XMLWriter
  • Loading branch information
bramstroker authored Jan 12, 2023
2 parents c6741b8 + 54ebbbb commit c18cf14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Model/Write/XMLWriter.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function writeElement($elementName, $value = null)
if ($value) {
$value = $this->xmlPrepare($value);
}
$this->text($value);
$this->text((string) $value);

if (!is_numeric($value) && !empty($value)) {
$this->endCdata();
Expand Down

0 comments on commit c18cf14

Please sign in to comment.