Skip to content

Commit 6ba5cbd

Browse files
mvorisekkubawerlos
authored andcommitted
Improve docs - README
Based on https://github.com/symfony/symfony/blob/1b4ab8108542daddd6ca96caf38b464ff3cc459a/src/Symfony/Component/Finder/Finder.php#L317 Update README.rst Co-Authored-By: Kuba Werłos <9282069+kubawerlos@users.noreply.github.com>
1 parent 0273752 commit 6ba5cbd

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

README.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1934,6 +1934,7 @@ The example below will add two rules to the default list of PSR2 set rules:
19341934
;
19351935
19361936
**NOTE**: ``exclude`` will work only for directories, so if you need to exclude file, try ``notPath``.
1937+
Both ``exclude`` and ``notPath`` methods accept only relative paths to the ones defined with the ``in`` method.
19371938

19381939
See `Symfony\\Finder <https://symfony.com/doc/current/components/finder.html>`_
19391940
online documentation for other `Finder` methods.

src/Console/Command/HelpCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ public static function getHelpCopy()
179179
?>
180180
181181
**NOTE**: ``exclude`` will work only for directories, so if you need to exclude file, try ``notPath``.
182+
Both ``exclude`` and ``notPath`` methods accept only relative paths to the ones defined with the ``in`` method.
182183
183184
See `Symfony\Finder` (<url>https://symfony.com/doc/current/components/finder.html</url>)
184185
online documentation for other `Finder` methods.

0 commit comments

Comments
 (0)