From 219534e88c0931a92c56727c40dddfe0470e0a79 Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 11 Jul 2021 14:37:17 +0000 Subject: [PATCH] Accepting "null" as parameter value --- src/Content/Text/BBCode.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Content/Text/BBCode.php b/src/Content/Text/BBCode.php index 399e429553..5f9a3ee78a 100644 --- a/src/Content/Text/BBCode.php +++ b/src/Content/Text/BBCode.php @@ -1287,11 +1287,11 @@ class BBCode * @return string * @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); - return self::convert($text, $try_oembed, $simple_html, false, $uriid ?? 0); + return self::convert($text ?? '', $try_oembed, $simple_html, false, $uriid ?? 0); } /**