Skip to content

Commit 45c9c97

Browse files
committed
Minor refactor
1 parent f0e2406 commit 45c9c97

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

components/serializer.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,10 @@ Be aware that this encoder will consider keys beginning with ``@`` as attributes
804804
the key ``#comment`` for encoding XML comments::
805805

806806
$encoder = new XmlEncoder();
807-
$encoder->encode(array('foo' => array('@bar' => 'value'), 'qux' => array('#comment' => 'A comment')), 'xml');
807+
$encoder->encode(array(
808+
'foo' => array('@bar' => 'value'),
809+
'qux' => array('#comment' => 'A comment'),
810+
), 'xml');
808811
// will return:
809812
// <?xml version="1.0"?>
810813
// <response>

0 commit comments

Comments
 (0)