Skip to content

Commit 9f3ba1c

Browse files
NightFox7wouterj
authored andcommitted
Add missing semicolon
Add missing semicolon to ``` $callback = function ($dateTime) { return $dateTime instanceof \DateTime ? $dateTime->format(\DateTime::ISO8601) : ''; } ``
1 parent ffe3425 commit 9f3ba1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/serializer.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ When serializing, you can set a callback to format a specific object property::
198198
return $dateTime instanceof \DateTime
199199
? $dateTime->format(\DateTime::ISO8601)
200200
: '';
201-
}
201+
};
202202

203203
$normalizer->setCallbacks(array('createdAt' => $callback));
204204

0 commit comments

Comments
 (0)