Skip to content

Commit f2ef5a6

Browse files
committed
minor #13926 Update serializer.rst (atailouloute)
This PR was merged into the 5.0 branch. Discussion ---------- Update serializer.rst as of SF 5.0, the XmlEncoder does accept `$decoderIgnoredNodeTypes` as an argument but as a key in the context. Commits ------- 8574f41 Update serializer.rst
2 parents 1776d07 + 8574f41 commit f2ef5a6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

components/serializer.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -830,8 +830,7 @@ always as a collection.
830830
.. tip::
831831

832832
XML comments are ignored by default when decoding contents, but this
833-
behavior can be changed with the optional ``$decoderIgnoredNodeTypes`` argument of
834-
the ``XmlEncoder`` class constructor.
833+
behavior can be changed with the optional context key ``XmlEncoder::DECODER_IGNORED_NODE_TYPES``.
835834

836835
Data with ``#comment`` keys are encoded to XML comments by default. This can be
837836
changed with the optional ``$encoderIgnoredNodeTypes`` argument of the

0 commit comments

Comments
 (0)