Security update for Core, with self-updated composer
[yaffs-website] / vendor / twig / twig / doc / filters / length.rst
index 5620f3b3c4d6f16eb6f32a13e5db290400855c93..e177b7b69ca0a2553ebf5c4a26ffbdf3a5088ff3 100644 (file)
@@ -14,6 +14,8 @@ return value of the ``count()`` method.
 For objects that implement the ``__toString()`` magic method (and not ``Countable``),
 it will return the length of the string provided by that method.
 
+For objects that implement the ``IteratorAggregate`` interface, ``length`` will use the return value of the ``iterator_count()`` method.
+
 .. code-block:: jinja
 
     {% if users|length > 10 %}