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: // //