Skip to content

Commit

Permalink
minor #4780 Add missing semicolon (NightFox7)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
wouterj committed Jan 8, 2015
2 parents ffe3425 + 9f3ba1c commit 28571fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/serializer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ When serializing, you can set a callback to format a specific object property::
return $dateTime instanceof \DateTime
? $dateTime->format(\DateTime::ISO8601)
: '';
}
};

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

Expand Down

0 comments on commit 28571fc

Please sign in to comment.