We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a0ac74e commit 12c60fcCopy full SHA for 12c60fc
2 files changed
src/Utils/Serializer.php
@@ -34,7 +34,7 @@ public function toJSONString()
34
35
public function toXMLString()
36
{
37
- return $this->arrayToXml($this->data, '<custom_fields/>');
+ return $this->arrayToXml($this->data, '<custom_field/>');
38
}
39
40
public function toQueryString()
tests/Unit/Utils/SerializerTest.php
@@ -20,6 +20,6 @@
20
});
21
22
it('Should return a XML', function() {
23
- $this->assertXmlStringEqualsXmlString("<custom_fields><nom>papi</nom><job>coder</job></custom_fields>",
+ $this->assertXmlStringEqualsXmlString("<custom_field><nom>papi</nom><job>coder</job></custom_field>",
24
(new Serializer(['nom' => 'papi', 'job' => 'coder']))->toXMLString());
25
0 commit comments