Skip to content

Commit 89a8262

Browse files
committed
minor #9864 Add all serialized class properties (liviubalan)
This PR was submitted for the 2.7 branch but it was merged into the 2.8 branch instead (closes #9864). Discussion ---------- Add all serialized class properties <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Commits ------- 854cb23 Add all serialized class properties
2 parents 1775afb + 854cb23 commit 89a8262

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
@@ -135,7 +135,7 @@ use the Serializer service created before::
135135

136136
$jsonContent = $serializer->serialize($person, 'json');
137137

138-
// $jsonContent contains {"name":"foo","age":99,"sportsperson":false}
138+
// $jsonContent contains {"name":"foo","age":99,"sportsperson":false,"createdAt":null}
139139

140140
echo $jsonContent; // or return it in a Response
141141

0 commit comments

Comments
 (0)