Skip to content

Commit 28571fc

Browse files
committed
minor #4780 Add missing semicolon (NightFox7)
This PR was submitted for the 2.6 branch but it was merged into the 2.3 branch instead (closes #4780). Discussion ---------- Add missing semicolon Add missing semicolon to ``` $callback = function ($dateTime) { return $dateTime instanceof \DateTime ? $dateTime->format(\DateTime::ISO8601) : ''; }; ``` Commits ------- 9f3ba1c Add missing semicolon
2 parents ffe3425 + 9f3ba1c commit 28571fc

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)