mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-17 12:57:05 +00:00
f48487949c62881fda1c9cef5963b8cea2a936a6
This PR was merged into the 1.16-dev branch.
Discussion
----------
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.
Commits
-------
d95d0fd Fix for broken BC through #1503: The slice filter works as the array_slice PHP function for arrays
Twig, the flexible, fast, and secure template language for PHP ============================================================== Twig is a template language for PHP, released under the new BSD license (code and documentation). Twig uses a syntax similar to the Django and Jinja template languages which inspired the Twig runtime environment. More Information ---------------- Read the `documentation`_ for more information. .. _documentation: http://twig.sensiolabs.org/documentation
Description
Languages
PHP
99.9%