You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found a weird behavior with ignoreDotFiles(true): the testsuite of the ExcludeDirectoryFilterIterator passes properly but folder starting with a dot are not ignored.
I found it when using the PHP-CS-Fixer (which calls this method in its DefaultFinder).
This PR was submitted for the master branch but it was merged into the 2.2 branch instead (closes#7188).
Commits
-------
3b2cb79 [Finder] fixed paths/notPaths regex for shell adapters
45b84c5 [Finder] fix issue 4911
Discussion
----------
[Finder] Fixes paths/notPaths issue with shell adapters
This PR is built upon #5128 from @gajdaw.
It fixes wrong handling of regex in `paths` and `notPaths` criteria by shell adapters.
| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #4911, #5128
I found a weird behavior with
ignoreDotFiles(true)
: the testsuite of the ExcludeDirectoryFilterIterator passes properly but folder starting with a dot are not ignored.I found it when using the PHP-CS-Fixer (which calls this method in its DefaultFinder).
Expected output: no change.
Actual output:
.test/foo.php
is modifiedThis is a bit annoying as it means that the fixer messes with the .idea folder holding the PHPStorm metadata.
FYI, I found this bug on Windows. I don't know if it is a platform-specific bug or if it affects Unix environments as well.
The text was updated successfully, but these errors were encountered: