Fix typehint to allow null to be passed

This commit is contained in:
Jonny Barnes 2019-10-27 20:17:51 +00:00
parent f8b187e55a
commit ed2b83fba7

View file

@ -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 [];