Skip to content

Commit

Permalink
Ensure nullable arguments are indeed nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
askvortsov1 committed Dec 13, 2020
1 parent e48b06e commit b6b26e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Formatter/FormatPostMentions.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class FormatPostMentions
* @param Psr\Http\Message\ServerRequestInterface $request
* @return void
*/
public function __invoke(Renderer $renderer, $context, $xml, Request $request)
public function __invoke(Renderer $renderer, $context, $xml, Request $request = null)
{
$post = $context;

Expand Down
2 changes: 1 addition & 1 deletion src/Formatter/FormatUserMentions.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class FormatUserMentions
* @param string|null $xml
* @param Psr\Http\Message\ServerRequestInterface $request
*/
public function __invoke(Renderer $renderer, $context, $xml, Request $request)
public function __invoke(Renderer $renderer, $context, $xml, Request $request = null)
{
$post = $context;

Expand Down

0 comments on commit b6b26e3

Please sign in to comment.