We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 446ddff commit 6330be5Copy full SHA for 6330be5
1 file changed
system/Format/XMLFormatter.php
@@ -40,6 +40,7 @@
40
namespace CodeIgniter\Format;
41
42
use CodeIgniter\Format\Exceptions\FormatException;
43
+use Config\Format;
44
45
/**
46
* XML data formatter
@@ -56,6 +57,8 @@ class XMLFormatter implements FormatterInterface
56
57
*/
58
public function format($data)
59
{
60
+ $config = new Format();
61
+
62
// SimpleXML is installed but default
63
// but best to check, and then provide a fallback.
64
if (! extension_loaded('simplexml'))
0 commit comments