File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1080,8 +1080,9 @@ always as a collection.
1080
1080
behavior can be changed with the optional context key ``XmlEncoder::DECODER_IGNORED_NODE_TYPES ``.
1081
1081
1082
1082
Data with ``#comment `` keys are encoded to XML comments by default. This can be
1083
- changed by adding the ``\XML_COMMENT_NODE `` option to the ``XmlEncoder::ENCODER_IGNORED_NODE_TYPES `` key of the ``$defaultContext `` of the
1084
- ``XmlEncoder `` class constructor or directly to the encode() method's $context argument.
1083
+ changed by adding the ``\XML_COMMENT_NODE `` option to the ``XmlEncoder::ENCODER_IGNORED_NODE_TYPES ``
1084
+ key of the ``$defaultContext `` of the ``XmlEncoder `` constructor or
1085
+ directly to the ``$context `` argument of the ``encode() `` method::
1085
1086
1086
1087
$xmlEncoder->encode($array, 'xml', [XmlEncoder::ENCODER_IGNORED_NODE_TYPES => [\XML_COMMENT_NODE]]);
1087
1088
You can’t perform that action at this time.
0 commit comments