From 0005da3a0d6a28882bcedb69c2cd46fe8d459ad1 Mon Sep 17 00:00:00 2001 From: Matteo Contrini Date: Wed, 4 Sep 2019 00:12:28 +0200 Subject: [PATCH] Allow formatting post content without a request (#1848) --- framework/core/src/Post/CommentPost.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/core/src/Post/CommentPost.php b/framework/core/src/Post/CommentPost.php index af311b169..400aa8a8f 100644 --- a/framework/core/src/Post/CommentPost.php +++ b/framework/core/src/Post/CommentPost.php @@ -169,7 +169,7 @@ class CommentPost extends Post * @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); }