We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e1e84c commit 596e2e0Copy full SHA for 596e2e0
components/serializer.rst
@@ -1101,9 +1101,8 @@ always as a collection.
1101
1102
You may need to add some attributes on the root node. This can be done this way :
1103
1104
- .. code-block:: PHP
+ .. code-block:: php
1105
1106
- <?php
1107
$encoder = new XmlEncoder();
1108
$encoder->encode([
1109
'@attribute1' => 'foo',
@@ -1113,7 +1112,7 @@ always as a collection.
1113
1112
1114
This will generate the following XML :
1115
1116
- .. code-block:: XML
+ .. code-block:: xml
1117
1118
<?xml version="1.0"?>
1119
<response attribute1="foo" attribute2="bar">
0 commit comments