Skip to content

Commit

Permalink
EWPP-4137: Add limit parameter type of smart_trim twig filter.
Browse files Browse the repository at this point in the history
  • Loading branch information
22Alexandra committed Mar 6, 2024
1 parent 7c35fa1 commit c1b2d5d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit c1b2d5d

Please sign in to comment.