mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-15 03:46:39 +00:00
3309c3c2461dcd37cf3323ecf6b576ec4f2f05af
This PR was merged into the 1.18-dev branch.
Discussion
----------
Updates slice so that it still accepts a SimpleXMLElement
Since #1503 you cannot pass a SimpleXMLElement to slice as you get:
Catchable fatal error: Argument 1 passed to LimitIterator::__construct() must implement interface Iterator, instance of SimpleXMLElement given
As SimpleXMLElement implements Traversable but not Iterator
This checks that $item is an instance of Iterator before passing to LimitIterator
Commits
-------
aea075b Updates slice so that it still accepts a SimpleXMLElement
…
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%