From 6e9acf4fa16768057f5e100066511df6ce9041bf Mon Sep 17 00:00:00 2001 From: ABRAHAM Morgan Date: Sat, 17 Nov 2018 23:44:35 +0100 Subject: [PATCH] Fixing type According to https://github.com/symfony/finder/blob/master/Finder.php#L38, Finder class is an IteratorAggregate --- components/finder.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/finder.rst b/components/finder.rst index 7180ffcb866..9d9c7331809 100644 --- a/components/finder.rst +++ b/components/finder.rst @@ -51,7 +51,7 @@ the Finder instance. .. tip:: - A Finder instance is a PHP :phpclass:`Iterator`. So, in addition to iterating over the + A Finder instance is a PHP :phpclass:`IteratorAggregate`. So, in addition to iterating over the Finder with ``foreach``, you can also convert it to an array with the :phpfunction:`iterator_to_array` method, or get the number of items with :phpfunction:`iterator_count`.