Skip to content

Fold path matchers into FileInfoMatcher - #157

Merged
TomasVotruba merged 1 commit into
mainfrom
fold-path-matchers
Oct 7, 2026
Merged

TomasVotruba merged 1 commit into
mainfrom
fold-path-matchers

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

Fnmatcher and RealpathMatcher were one-public-method helpers used only by FileInfoMatcher, each carrying a verbatim copy of the same private normalizePath().

Folds both into FileInfoMatcher as private methods (matchesFnmatch(), matchesRealpath()) with a single shared normalizePath(). Logic is unchanged. FnMatchPathNormalizer stays as-is (own test, distinct job).

All 316 tests pass; PHPStan level 8, Rector and ECS clean on the changed file.

@TomasVotruba
TomasVotruba marked this pull request as ready for review October 7, 2026 08:42
@TomasVotruba
TomasVotruba enabled auto-merge (squash) October 7, 2026 08:42
@TomasVotruba
TomasVotruba merged commit 7bec6cb into main Oct 7, 2026
19 checks passed
@TomasVotruba
TomasVotruba deleted the fold-path-matchers branch October 7, 2026 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant