diff --git a/components/finder.rst b/components/finder.rst index c0c03b1306d..a93f96851d7 100644 --- a/components/finder.rst +++ b/components/finder.rst @@ -83,7 +83,7 @@ Search in several locations by chaining calls to :method:`Symfony\\Component\\Finder\\Finder::in`:: // search inside *both* directories - $finder->files()->in(array(__DIR__, '/elsewhere')); + $finder->in(array(__DIR__, '/elsewhere')); // same as above $finder->in(__DIR__)->in('/elsewhere');