twigphp/Twig — pull request #1553 by RLasinski (2014-10-21 07:05:00+00:00)
Title: Fix for broken BC through #1503: The slice filter works as the array_slice PHP function for arrays

The pull request #1503 has broken the described BC in documentation: "The slice filter works as the array_slice PHP function for arrays".

If the start-value is out of bounds the current implementation throws an OutOfBoundsException. The old implementation returns an empty array.

I also added some test cases.