From c1b2d5dd8518d812e5a76e279daf4a410f450152 Mon Sep 17 00:00:00 2001 From: 22Alexandra Date: Wed, 6 Mar 2024 10:41:16 +0200 Subject: [PATCH] EWPP-4137: Add limit parameter type of smart_trim twig filter. --- modules/oe_theme_helper/src/TwigExtension/TwigExtension.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/oe_theme_helper/src/TwigExtension/TwigExtension.php b/modules/oe_theme_helper/src/TwigExtension/TwigExtension.php index 9efdc2887..6dde313c5 100644 --- a/modules/oe_theme_helper/src/TwigExtension/TwigExtension.php +++ b/modules/oe_theme_helper/src/TwigExtension/TwigExtension.php @@ -506,7 +506,7 @@ protected function getIconPath(array $context, string $icon): string { * @return mixed * The trimmed output. */ - public function smartTrim(Environment $env, $input, $limit = 0) { + public function smartTrim(Environment $env, $input, int $limit = 0) { // Bubbles Twig template argument's cacheability & attachment metadata. $this->bubbleArgMetadata($input); $truncate = new TruncateHTML();