You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the docs, filters are created as callable functions
$dust->filters['striptags'] = function ($value) {
//not a string, nothing to doif (!is_string($value)) {
return$value;
}
//otherwise strip the tagsreturnstrip_tags($value);
}
Which results in Call to undefined method Closure::apply()
I had to create a subclass of \Dust\Filter\Filter to get it to work.
According to the docs, filters are created as callable functions
Which results in
Call to undefined method Closure::apply()
I had to create a subclass of
\Dust\Filter\Filter
to get it to work.The text was updated successfully, but these errors were encountered: