fabpot/Twig — Issue #622: slice filter w/ no specified length for string values (1.6.0)
Author: sv1l
Created: 2012-02-05 17:17:05+00:00
State: open

For string values, the ``slice`` filter with no specified length (2nd argument) does not return what's expected, as specified in the [doc](http://twig.sensiolabs.org/doc/filters/slice.html)

If it is omitted, then the sequence will have everything
from offset up until the end of the variable.

Instead, it returns an empty string as specified in the PHP ``substr`` [doc](http://php.net/manual/en/function.substr.php)

If length is given and is 0, FALSE or NULL an empty string will be returned.

I'm going to send a PR a.s.a.p