Fix typehint to allow null to be passed
This commit is contained in:
parent
f8b187e55a
commit
ed2b83fba7
1 changed files with 2 additions and 2 deletions
|
@ -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 [];
|
||||
|
|
Loading…
Add table
Reference in a new issue