Skip to content

Commit 1a2ffc7

Browse files
committed
Merge branch '5.4' into 6.0
* 5.4: Minor reword [Mailer] Remove duplicate semicolon Update symfony_server.rst [Finder] Add note about .gitignore rules precedence
2 parents 896b814 + 4f475d6 commit 1a2ffc7

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

components/finder.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,15 @@ can reuse those rules to exclude files and directories from the results with the
148148
// excludes files/directories matching the .gitignore patterns
149149
$finder->ignoreVCSIgnored(true);
150150

151+
The rules of a directory always override the rules of its parent directories.
152+
153+
.. note::
154+
155+
Git looks for ``.gitignore`` files starting from the repository root directory.
156+
Symfony's Finder behavior is different and it looks for ``.gitignore`` files
157+
starting from the directory used to search files/directories. To be consistent
158+
with Git behavior, you should explicitly search from the Git repository root.
159+
151160
File Name
152161
~~~~~~~~~
153162

mailer.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ header, etc.) but most of the times you'll set text headers::
379379
->getHeaders()
380380
// this header tells auto-repliers ("email holiday mode") to not
381381
// reply to this message because it's an automated email
382-
->addTextHeader('X-Auto-Response-Suppress', 'OOF, DR, RN, NRN, AutoReply');
382+
->addTextHeader('X-Auto-Response-Suppress', 'OOF, DR, RN, NRN, AutoReply')
383383

384384
// ...
385385
;

setup/symfony_server.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,10 @@ root directory:
114114
$ cd my-project/
115115
116116
# use a specific PHP version
117-
$ echo 7.2 > .php-version
117+
$ echo 7.4 > .php-version
118118
119-
# use any PHP 7.x version available
120-
$ echo 7 > .php-version
119+
# use any PHP 8.x version available
120+
$ echo 8 > .php-version
121121
122122
.. tip::
123123

0 commit comments

Comments
 (0)