From 7e37605117844b95c644aa48b84a765ed3521e67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Richard=20Dobro=C5=88?= Date: Sat, 25 Jun 2022 20:32:26 +0200 Subject: [PATCH] Fix compatibility of __toString for php < 8 --- src/fbt/Runtime/Shared/InlineFbtResult.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fbt/Runtime/Shared/InlineFbtResult.php b/src/fbt/Runtime/Shared/InlineFbtResult.php index fecc63e..18b4bd4 100644 --- a/src/fbt/Runtime/Shared/InlineFbtResult.php +++ b/src/fbt/Runtime/Shared/InlineFbtResult.php @@ -58,8 +58,8 @@ public function __construct( $this->contents = $contents; } - public function __toString() + public function __toString(): string { - return em($this->contents, $this->inlineMode, $this->translation, $this->hash); + return (string) em($this->contents, $this->inlineMode, $this->translation, $this->hash); } }