From b6b26e3da581624efec8b85356d22ba00afe40f3 Mon Sep 17 00:00:00 2001 From: Alexander Skvortsov Date: Sun, 13 Dec 2020 16:38:24 -0500 Subject: [PATCH] Ensure nullable arguments are indeed nullable --- src/Formatter/FormatPostMentions.php | 2 +- src/Formatter/FormatUserMentions.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Formatter/FormatPostMentions.php b/src/Formatter/FormatPostMentions.php index d4b47b8..c1a002f 100644 --- a/src/Formatter/FormatPostMentions.php +++ b/src/Formatter/FormatPostMentions.php @@ -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; diff --git a/src/Formatter/FormatUserMentions.php b/src/Formatter/FormatUserMentions.php index 7d160aa..d97a2b8 100644 --- a/src/Formatter/FormatUserMentions.php +++ b/src/Formatter/FormatUserMentions.php @@ -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;