Skip to content

Commit b4c96cb

Browse files
correct boolean values in XML
1 parent f71bab8 commit b4c96cb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/XMLHelper/MindboxXMLSerializer.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ private static function getXML(&$xml, array $data)
4747
if (is_array($value)) {
4848
$subNode = $xml->addChild($key);
4949
self::getXML($subNode, $value);
50+
} elseif (is_bool($value)) {
51+
$xml->addChild($key, var_export($value, true));
5052
} else {
5153
$xml->addChild($key, $value);
5254
}

0 commit comments

Comments
 (0)