From ed2b83fba77aa17edde87379d225b2e880d2ac51 Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Sun, 27 Oct 2019 20:17:51 +0000 Subject: [PATCH] Fix typehint to allow null to be passed --- app/Jobs/SendWebMentions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Jobs/SendWebMentions.php b/app/Jobs/SendWebMentions.php index 3a583563..4106d41a 100644 --- a/app/Jobs/SendWebMentions.php +++ b/app/Jobs/SendWebMentions.php @@ -106,10 +106,10 @@ class SendWebMentions implements ShouldQueue /** * Get the URLs from a note. * - * @param string $html + * @param string|null $html * @return array */ - public function getLinks(string $html): array + public function getLinks(?string $html): array { if ($html == '' || is_null($html)) { return [];