Skip to content

Commit 626bb8c

Browse files
committed
Merge branch '5.4' into 6.0
* 5.4: minor #17325 Fix typo (cafferata) Change 'ignore' element to attribute in Serializer XML example
2 parents 704602d + 1e071d5 commit 626bb8c

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
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

components/string.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ Methods to Pad and Trim
301301
u('template.html.twig')->trimSuffix('.html'); // 'template.html.twig'
302302
u('template.html.twig')->trimSuffix('.twig'); // 'template.html'
303303
u('template.html.twig')->trimSuffix('.html.twig'); // 'template'
304-
// when passing an array of prefix/sufix, only the first one found is trimmed
304+
// when passing an array of prefix/suffix, only the first one found is trimmed
305305
u('file-image-0001.png')->trimPrefix(['file-', 'image-']); // 'image-0001.png'
306306
u('template.html.twig')->trimSuffix(['.twig', '.html']); // 'template.html'
307307

0 commit comments

Comments
 (0)