We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cec45a9 commit 8dfb847Copy full SHA for 8dfb847
Encoder/XmlEncoder.php
@@ -287,7 +287,7 @@ private function parseXml($node)
287
*
288
* @throws UnexpectedValueException
289
*/
290
- private function buildXml($parentNode, $data, $xmlRootNodeName)
+ private function buildXml($parentNode, $data, $xmlRootNodeName = null)
291
{
292
$append = true;
293
@@ -392,7 +392,7 @@ private function needsCdataWrapping($val)
392
private function selectNodeType($node, $val)
393
394
if (is_array($val)) {
395
- return $this->buildXml($node, $val, null);
+ return $this->buildXml($node, $val);
396
} elseif ($val instanceof \SimpleXMLElement) {
397
$child = $this->dom->importNode(dom_import_simplexml($val), true);
398
$node->appendChild($child);
0 commit comments