Skip to content

Commit 468131f

Browse files
committed
bug #21376 Fix typo on variable (sblum51)
This PR was submitted for the 7.3 branch but it was merged into the 6.4 branch instead. Discussion ---------- Fix typo on variable Fix typo on variable name (uppercase) : $JsonContent => $jsonContent Commits ------- 91c826d Fix typo
2 parents e27de86 + 91c826d commit 468131f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

serializer.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -948,7 +948,7 @@ works just like serializing a single object::
948948
$person2 = new Person('John Smith', 52, true);
949949

950950
$persons = [$person1, $person2];
951-
$JsonContent = $serializer->serialize($persons, 'json');
951+
$jsonContent = $serializer->serialize($persons, 'json');
952952

953953
// $jsonContent contains [{"name":"Jane Doe","age":39,"sportsman":false},{"name":"John Smith","age":52,"sportsman":true}]
954954

0 commit comments

Comments
 (0)