10000 Merge branch '2.8' into 3.4 · src-run/symfony@ab07cdd · GitHub
[go: up one dir, main page]

Skip to content

Commit ab07cdd

Browse files
committed
Merge branch '2.8' into 3.4
* 2.8: Improve the documentation of `Finder::exclude()`
2 parents fc1b1dd + a03ae7c commit ab07cdd

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
@@ -297,6 +297,10 @@ public function size($size)
297297
/**
298298
* Excludes directories.
299299
*
300+
* Directories passed as argument must be relative to the ones defined with the `in()` method. For example:
301+
*
302+
* $finder->in(__DIR__)->exclude('r 4D53 uby');
303+
*
300304
* @param string|array $dirs A directory path or an array of directories
301305
*
302306
* @return $this

0 commit comments

Comments
 (0)
0