Skip to content

Commit a28a7bc

Browse files
committed
Merge branch '4.4' into 5.2
* 4.4: s/it's/its [Serializer] Fixed occurence of an old FQCN notation
2 parents 20b99b6 + 5b6ff21 commit a28a7bc

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

components/serializer.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,8 @@ when this happens, set the ``AbstractNormalizer::ALLOW_EXTRA_ATTRIBUTES`` contex
174174
``false`` and provide an object that implements ``ClassMetadataFactoryInterface``
175175
when constructing the normalizer::
176176

177+
use App\Model\Person;
178+
177179
$data = <<<EOF
178180
<person>
179181
<name>foo</name>
@@ -189,7 +191,7 @@ when constructing the normalizer::
189191

190192
// this will throw a Symfony\Component\Serializer\Exception\ExtraAttributesException
191193
// because "city" is not an attribute of the Person class
192-
$person = $serializer->deserialize($data, 'App\Model\Person', 'xml', [
194+
$person = $serializer->deserialize($data, Person::class, 'xml', [
193195
AbstractNormalizer::ALLOW_EXTRA_ATTRIBUTES => false,
194196
]);
195197

workflow.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ like this:
163163
If you are creating your first workflows, consider using the ``workflow:dump``
164164
command to :doc:`debug the workflow contents </workflow/dumping-workflows>`.
165165

166-
The configured property will be used via it's implemented getter/setter methods by the marking store::
166+
The configured property will be used via its implemented getter/setter methods by the marking store::
167167

168168
// src/Entity/BlogPost.php
169169
namespace App\Entity;

0 commit comments

Comments
 (0)