Skip to content

Commit e4c56e4

Browse files
committed
bug #6619 Fix wrong variable name in comment (zanardigit)
This PR was submitted for the master branch but it was merged into the 2.7 branch instead (closes #6619). Discussion ---------- 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 Commits ------- 682bb81 Fix wrong variable name in comment
2 parents b29d2a3 + 682bb81 commit e4c56e4

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)