Skip to content

Commit bff0ce6

Browse files
[Finder] document array use for locations
1 parent bb0d522 commit bff0ce6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/finder.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ directory to use for the search::
8282
Search in several locations by chaining calls to
8383
:method:`Symfony\\Component\\Finder\\Finder::in`::
8484

85-
$finder->files()->in(__DIR__)->in('/elsewhere');
85+
$finder->files()->in(array(__DIR__, '/elsewhere'));
86+
$finder->in(__DIR__)->in('/elsewhere');
8687

8788
Use wildcard characters to search in the directories matching a pattern::
8889

0 commit comments

Comments
 (0)