From: Fabien Potencier Date: Fri, 10 Oct 2014 23:28:34 +0000 (+0200) Subject: bug #1531 Fixed usage of LimitIterator (grachov) X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=a2172363d7517efa1730b61dbe4587e375792682;p=web%2Fkonrad%2Ftwig.git bug #1531 Fixed usage of LimitIterator (grachov) This PR was squashed before being merged into the 1.16-dev branch (closes #1531). Discussion ---------- Fixed usage of LimitIterator When you want to get all items from the start position to the end, for `array_slice` you should pass `null` as the `length` argument, while for `LimitIterator` it should be `-1`. Commits ------- f76e67f Fixed usage of LimitIterator --- a2172363d7517efa1730b61dbe4587e375792682