Skip to content

Commit c5c751c

Browse files
committed
Merge branch '2.7' into 2.8
* 2.7: Improve the documentation of `Finder::exclude()`
2 parents 7099de3 + 1f813a5 commit c5c751c

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
@@ -407,6 +407,10 @@ public function size($size)
407407
/**
408408
* Excludes directories.
409409
*
410+
* Directories passed as argument must be relative to the ones defined with the `in()` method. For example:
411+
*
412+
* $finder->in(__DIR__)->exclude('ruby');
413+
*
410414
* @param string|array $dirs A directory path or an array of directories
411415
*
412416
* @return $this

0 commit comments

Comments
 (0)