Skip to content

Commit

Permalink
Allow formatting post content without a request (#1848)
Browse files Browse the repository at this point in the history
  • Loading branch information
matteocontrini authored and luceos committed Feb 4, 2020
1 parent 52e73b2 commit df7f129
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Post/CommentPost.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public function setParsedContentAttribute($value)
* @param ServerRequestInterface $request
* @return string
*/
public function formatContent(ServerRequestInterface $request)
public function formatContent(ServerRequestInterface $request = null)
{
return static::$formatter->render($this->attributes['content'], $this, $request);
}
Expand Down

0 comments on commit df7f129

Please sign in to comment.