Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed bug #3007: Directory exclude pattern improperly excludes directories with names that start the same #3008

Merged
merged 2 commits into from
Sep 1, 2020
Merged

Conversation

SteveTalbot
Copy link

This is a suggested fix for #3007

To unit test this properly, you'd need to mock the is_dir function on Filter.php#L237. Sorry, I couldn't find a neat way to do that in the time I had available.

@gsherwood gsherwood added this to Idea Bank in PHPCS v3 Development via automation Jul 23, 2020
@gsherwood gsherwood added this to the 3.5.7 milestone Jul 23, 2020
@gsherwood gsherwood merged commit 85f3521 into squizlabs:master Sep 1, 2020
PHPCS v3 Development automation moved this from Idea Bank to Ready for Release Sep 1, 2020
@gsherwood
Copy link
Member

Thanks a lot for this fix, and the detailed bug report you submitted as well.

@SteveTalbot SteveTalbot deleted the directory-exclude-pattern branch September 2, 2020 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
PHPCS v3 Development
Ready for Release
Development

Successfully merging this pull request may close these issues.

None yet

2 participants