Accepting "null" as parameter value

This commit is contained in:
Michael 2021-07-11 14:37:17 +00:00
parent 7390791d21
commit 219534e88c

View file

@ -1287,11 +1287,11 @@ class BBCode
* @return string * @return string
* @throws \Friendica\Network\HTTPException\InternalServerErrorException * @throws \Friendica\Network\HTTPException\InternalServerErrorException
*/ */
public static function convertForUriId($uriid, string $text = null, int $simple_html = self::INTERNAL) public static function convertForUriId(int $uriid = null, string $text = null, int $simple_html = self::INTERNAL)
{ {
$try_oembed = ($simple_html == self::INTERNAL); $try_oembed = ($simple_html == self::INTERNAL);
return self::convert($text, $try_oembed, $simple_html, false, $uriid ?? 0); return self::convert($text ?? '', $try_oembed, $simple_html, false, $uriid ?? 0);
} }
/** /**