Skip to content

Commit 8432bd9

Browse files
authored
Update XMLFormatter.php
1 parent a6be2ea commit 8432bd9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

system/Format/XMLFormatter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class XMLFormatter implements FormatterInterface
5252
*
5353
* @return mixed
5454
*/
55-
public function format(array $data)
55+
public function format($data)
5656
{
5757
// SimpleXML is installed but default
5858
// but best to check, and then provide a fallback.
@@ -66,7 +66,7 @@ public function format(array $data)
6666

6767
$output = new \SimpleXMLElement('<?xml version="1.0"?><response></response>');
6868

69-
$this->arrayToXML($data, $output);
69+
$this->arrayToXML((array)$data, $output);
7070

7171
return $output->asXML();
7272
}

0 commit comments

Comments
 (0)