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.
|
* Get the URLs from a note.
|
||||||
*
|
*
|
||||||
* @param string $html
|
* @param string|null $html
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function getLinks(string $html): array
|
public function getLinks(?string $html): array
|
||||||
{
|
{
|
||||||
if ($html == '' || is_null($html)) {
|
if ($html == '' || is_null($html)) {
|
||||||
return [];
|
return [];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue