diff --git a/components/serializer.rst b/components/serializer.rst index f554ed7cf76..f2c3285a33b 100644 --- a/components/serializer.rst +++ b/components/serializer.rst @@ -994,7 +994,7 @@ The ``YamlEncoder`` Context Options The ``encode()`` method, like other encoder, uses ``context`` to set configuration options for the YamlEncoder an associative array:: - $xmlEncoder->encode($array, 'xml', $context); + $yamlEncoder->encode($array, 'yaml', $context); These are the options available: