fabpot/Twig — pull request #508 by Seldaek (2011-11-08 10:27:04+00:00)
Title: Allow filters to work with values by reference

This allows one to use filters like `foo|shift` => `array_shift($foo)`. If you don't return by reference then filters and functions etc can never get values by reference to modify them.

I know it's a fringe case, but it'd be nice. Tests pass but I'm not sure if it has an impact on performances, I don't see why it would though.