8000 Improve the documentation of `Finder::exclude()` · dunglas/symfony@cc3084e · GitHub
[go: up one dir, main page]

Skip to content

Commit cc3084e

Browse files
authored
Improve the documentation of Finder::exclude()
1 parent 79e8545 commit cc3084e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Symfony/Component/Finder/Finder.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,10 @@ public function size($size)
386386
/**
387387
* Excludes directories.
388388
*
389+
* Directories passed as argument must be relative to the ones defined with the `in()` method. For example:
390+
*
391+
* $finder->in(__DIR__)->exclude('ruby');
392+
*
389393
* @param string|array $dirs A directory path or an array of directories
390394
*
391395
* @return $this

0 commit comments

Comments
 (0)
0