Closed rrenteria-dev closed 11 months ago
Disregard this! Im sorry, i totally forgot that the appy_filter filter is a custom one.
public function applyFilter($env, $value, $filterName, ...$arguments):mixed {
$twigFilter = $env->getFilter($filterName);
if (!$twigFilter) {
return $value;
}
return call_user_func($twigFilter->getCallable(), $value, ...$arguments);
}
Hello!
I've just updated to 2.2 since 1.20 and i noticed that i cant call the filters with the apply_filter Results in this error:
Steps to reproduce:
Im required to apply_filter because 'ago' is being set dynamically. Sure, i can just put an if statement and call the filter directly, but im guessing this is a compatibility error.
Any thoughts? Thanks!