Skip to content

Commit c857129

Browse files
authored
fix: cast render result to string in InspectorHints (#187)
1 parent f69312a commit c857129

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Model/TemplateEngine/Decorator/InspectorHints.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public function render(BlockInterface $block, $templateFile, array $dictionary =
124124
{
125125
// Measure render time
126126
$startTime = hrtime(true);
127-
$result = $this->subject->render($block, $templateFile, $dictionary);
127+
$result = (string) $this->subject->render($block, $templateFile, $dictionary);
128128
$endTime = hrtime(true);
129129

130130
if (!$this->showBlockHints) {

0 commit comments

Comments
 (0)