From 78217a4252afcc2d6fbe01b61dd1e2054b5355a1 Mon Sep 17 00:00:00 2001 From: Patryk Date: Fri, 6 Jul 2018 14:53:04 +0200 Subject: [PATCH] Fix type --- src/Twig/Extension/RenderContentExtension.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Twig/Extension/RenderContentExtension.php b/src/Twig/Extension/RenderContentExtension.php index e96b2feb5..9f2ec64b2 100644 --- a/src/Twig/Extension/RenderContentExtension.php +++ b/src/Twig/Extension/RenderContentExtension.php @@ -34,7 +34,7 @@ public function getFunctions(): array public function renderContent(ContentableInterface $contentableResource): string { - $content = (string) html_entity_decode($contentableResource->getContent(), ENT_QUOTES); + $content = (string) html_entity_decode((string) $contentableResource->getContent(), ENT_QUOTES); return $this->contentParser->parse($content); }