Skip to content

Commit

Permalink
Convert the component content to string in helper.
Browse files Browse the repository at this point in the history
  • Loading branch information
feuzeu committed Dec 2, 2024
1 parent acc7eac commit 1a1251a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/App/View/AttrHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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() : '';
}

/**
Expand Down

0 comments on commit 1a1251a

Please sign in to comment.