Skip to content

Commit

Permalink
Force return of string
Browse files Browse the repository at this point in the history
  • Loading branch information
jissereitsma committed Aug 23, 2024
1 parent 0ef22c6 commit 56e1602
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Plugin/AddCspInlineScripts.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function afterToHtml(Template $block, $html): string
}

if (false === strstr((string)$block->getNameInLayout(), 'yireo_googletagmanager2.')) {
return $html;
return (string)$html;
}

$scripts = $this->scriptFinder->find($html);
Expand Down

0 comments on commit 56e1602

Please sign in to comment.