From 1a1251ab197bd2aab13739d3903f2fdccb8fbef9 Mon Sep 17 00:00:00 2001 From: Thierry Feuzeu Date: Mon, 2 Dec 2024 19:30:15 +0100 Subject: [PATCH] Convert the component content to string in helper. --- src/App/View/AttrHelper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App/View/AttrHelper.php b/src/App/View/AttrHelper.php index 2a778c3b..294230a9 100755 --- a/src/App/View/AttrHelper.php +++ b/src/App/View/AttrHelper.php @@ -53,7 +53,7 @@ public function html(JxnCall $xJsCall): string } $xCallable = $this->cls->makeRegisteredObject($sClassName); - return is_a($xCallable, Component::class) ? $xCallable->html() : ''; + return is_a($xCallable, Component::class) ? (string)$xCallable->html() : ''; } /**