Skip to content

Commit 682bb81

Browse files
Francesco Abeniwouterj
Francesco Abeni
authored andcommitted
Fix wrong variable name in comment
The object being updated via deserialize is $person, but in the comment it was wrongly referred to as $obj2
1 parent b29d2a3 commit 682bb81

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: '69', sportsman: true)
172+
// $person = 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)