Improve the documentation of `Finder::exclude()`

This commit is contained in:
Matthieu Napoli 2018-03-04 16:13:29 +01:00 committed by GitHub
parent 79e8545f86
commit cc3084ed65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -386,6 +386,10 @@ class Finder implements \IteratorAggregate, \Countable
/**
* Excludes directories.
*
* Directories passed as argument must be relative to the ones defined with the `in()` method. For example:
*
* $finder->in(__DIR__)->exclude('ruby');
*
* @param string|array $dirs A directory path or an array of directories
*
* @return $this