Skip to content

Commit

Permalink
EWPP-3025: Limit parameter must be a number.
Browse files Browse the repository at this point in the history
  • Loading branch information
brummbar committed May 24, 2023
1 parent 8da8f67 commit 87aba73
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ protected function getIconPath(array $context, string $icon): string {
* @return mixed
* The trimmed output.
*/
public function smartTrim(Environment $env, $input, $limit) {
public function smartTrim(Environment $env, $input, $limit = 0) {
// Bubbles Twig template argument's cacheability & attachment metadata.
$this->bubbleArgMetadata($input);
$truncate = new TruncateHTML();
Expand Down

0 comments on commit 87aba73

Please sign in to comment.