Closed sescandell closed 12 years ago
no. They should indeed be functions. The appropriate fix is to change them to sue Twig_Function_Method
instead of Twig_Filter_Method
. Could you send a PR to the v1.0 branch with a fix ?
Ok. I was wondering if it was the bad function name or the bad objects.
I will find some times to make the PR.
it seems I have the same issue, too.
Sorry for the delay,
PR sent
Switching to Twig 1.8.0, I got the following error :
Exploring the code, I see in TwitterAnywhereExtension class you override the function "getFunctions()" in order to return an array of Twig_Filter_Method objects. I think the right function to override is "getFilters()" instead.