Skip to content

Commit 1f813a5

Browse files
authored
Improve the documentation of Finder::exclude()
1 parent 850138b commit 1f813a5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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)