From 56114b99976d4f769d47c527be938d188278e07b Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Thu, 3 Jan 2019 13:03:21 +0100 Subject: [PATCH] Fixed the code of an XmlEncoder example --- components/serializer.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/serializer.rst b/components/serializer.rst index 49f298b1fc0..eb09dd7c053 100644 --- a/components/serializer.rst +++ b/components/serializer.rst @@ -714,7 +714,7 @@ The ``XmlEncoder`` will encode this object like that:: Be aware that this encoder will consider keys beginning with ``@`` as attributes:: $encoder = new XmlEncoder(); - $encoder->encode(array('foo' => array('@bar' => 'value'))); + $encoder->encode(array('foo' => array('@bar' => 'value')), 'xml'); // will return: // //