Skip to content

Commit 0fc3341

Browse files
committed
minor #3473 Fix length filter documentation about computation (VincentLanglet)
This PR was merged into the 1.x branch. Discussion ---------- Fix length filter documentation about computation According to https://github.com/twigphp/Twig/blob/1.x/src/Extension/CoreExtension.php#L1317 Commits ------- 473f73e Fix length filter doc
2 parents 91e1a3c + 473f73e commit 0fc3341

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/filters/length.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ return value of the ``count()`` method.
1414
For objects that implement the ``__toString()`` magic method (and not ``Countable``),
1515
it will return the length of the string provided by that method.
1616

17-
For objects that implement the ``IteratorAggregate`` interface, ``length`` will use the return value of the ``iterator_count()`` method.
17+
For objects that implement the ``Traversable`` interface, ``length`` will use the return value of the ``iterator_count()`` method.
1818

1919
.. code-block:: twig
2020

0 commit comments

Comments
 (0)