Skip to content

Commit efdde04

Browse files
committed
bug #6552 Typo fix in the Serializer deserialization example for existing object (fre5h)
This PR was merged into the 2.7 branch. Discussion ---------- Typo fix in the Serializer deserialization example for existing object | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | 2.7+ | Fixed tickets | N/A Just found a small typo in the comment with result values of deserialization. As the init value of the `age` of the `person` is 99, then after deserializing the existing `person` object it is 69. But in comment it is still 99 `// $jsonContent contains {"name":"foo","age":99,"sportsman":false}` Commits ------- 44ecd19 Typo fix in the Serializer deserialization example
2 parents 3f9e578 + 44ecd19 commit efdde04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/serializer.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ The serializer can also be used to update an existing object::
169169
EOF;
170170

171171
$serializer->deserialize($data, 'Acme\Person', 'xml', array('object_to_populate' => $person));
172-
// $obj2 = Acme\Person(name: 'foo', age: '99', sportsman: true)
172+
// $obj2 = Acme\Person(name: 'foo', age: '69', sportsman: true)
173173

174174
This is a common need when working with an ORM.
175175

0 commit comments

Comments
 (0)