Skip to content

Commit cd23bde

Browse files
authored
Update serializer.rst
Fix name variable in code exemple.
1 parent 56d4cce commit cd23bde

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
@@ -661,7 +661,7 @@ When serializing, you can set a callback to format a specific object property::
661661

662662
$defaultContext = [
663663
AbstractNormalizer::CALLBACKS => [
664-
'createdAt' => $callback,
664+
'createdAt' => $dateCallback,
665665
],
666666
];
667667

0 commit comments

Comments
 (0)