From 4b9f70db1c3262ce47d5ec3b639e22a057d47adb Mon Sep 17 00:00:00 2001 From: James Cole Date: Tue, 3 Aug 2021 06:18:35 +0200 Subject: [PATCH] cast to string --- app/Support/Twig/General.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Support/Twig/General.php b/app/Support/Twig/General.php index c4bbd0d090..5c3b7d8d72 100644 --- a/app/Support/Twig/General.php +++ b/app/Support/Twig/General.php @@ -212,7 +212,7 @@ class General extends AbstractExtension $converter = new CommonMarkConverter(['allow_unsafe_links' => false, 'max_nesting_level' => 3, 'html_input' => 'escape'], $environment); - return $converter->convertToHtml($text); + return (string) $converter->convertToHtml($text); }, ['is_safe' => ['html']] ); }