Skip to content

Commit dcce2f9

Browse files
committed
Merge branch '6.1' into 6.2
* 6.1: minor #17325 Fix typo (cafferata) Change 'ignore' element to attribute in Serializer XML example
2 parents 45a86a3 + e7c4ead commit dcce2f9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

components/serializer.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -468,9 +468,7 @@ Option 1: Using ``@Ignore`` Annotation
468468
https://symfony.com/schema/dic/serializer-mapping/serializer-mapping-1.0.xsd"
469469
>
470470
<class name="App\Model\MyClass">
471-
<attribute name="bar">
472-
<ignore>true</ignore>
473-
</attribute>
471+
<attribute name="bar" ignore="true"/>
474472
</class>
475473
</serializer>
476474

0 commit comments

Comments
 (0)