Fabien Potencier 3309c3c246 bug #1637 Updates slice so that it still accepts a SimpleXMLElement (bob-p)
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
2015-02-27 15:25:52 +01:00
2015-01-25 18:35:14 +01:00
2015-01-20 03:31:04 +01:00
2014-08-29 00:51:54 +09:00

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
Languages
PHP 99.9%