We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6be2ea commit 8432bd9Copy full SHA for 8432bd9
1 file changed
system/Format/XMLFormatter.php
@@ -52,7 +52,7 @@ class XMLFormatter implements FormatterInterface
52
*
53
* @return mixed
54
*/
55
- public function format(array $data)
+ public function format($data)
56
{
57
// SimpleXML is installed but default
58
// but best to check, and then provide a fallback.
@@ -66,7 +66,7 @@ public function format(array $data)
66
67
$output = new \SimpleXMLElement('<?xml version="1.0"?><response></response>');
68
69
- $this->arrayToXML($data, $output);
+ $this->arrayToXML((array)$data, $output);
70
71
return $output->asXML();
72
}
0 commit comments