From 45dda2c0647a76093fc50b7f245b78d59ef90434 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Wed, 10 May 2023 17:06:16 +0200 Subject: [PATCH] Update src/Util/Images.php Co-authored-by: Hypolite Petovan --- src/Util/Images.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Util/Images.php b/src/Util/Images.php index f468e69c2d..05b3573dd2 100644 --- a/src/Util/Images.php +++ b/src/Util/Images.php @@ -343,7 +343,8 @@ class Images * @param string $preview Preview image URL * @param string $description * @return string - */ public static function getBBCodeByUrl(string $photo, string $preview = null, string $description = null): string + */ + public static function getBBCodeByUrl(string $photo, string $preview = null, string $description = ''): string { if (!empty($preview)) { return '[url=' . $photo . '][img=' . $preview . ']' . $description . '[/img][/url]'; -- 2.39.5