Skip to content

Prevent duplicate path normalization#4931

Merged
staabm merged 4 commits intophpstan:2.1.xfrom
staabm:less-norm
Feb 14, 2026
Merged

Prevent duplicate path normalization#4931
staabm merged 4 commits intophpstan:2.1.xfrom
staabm:less-norm

Conversation

@staabm
Copy link
Contributor

@staabm staabm commented Feb 14, 2026

@@ -51,7 +52,10 @@ public function findFiles(array $paths): FileFinderResult

Copy link
Contributor Author

@staabm staabm Feb 14, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isExcludedFromAnalysing is already normalizing (so doesn't require a normalized $files arg), therefore lets normalize only after filtering to reduce the duplicate work

@staabm staabm marked this pull request as ready for review February 14, 2026 14:54
@phpstan-bot
Copy link
Collaborator

This pull request has been marked as ready for review.

@staabm staabm merged commit 8ac3a91 into phpstan:2.1.x Feb 14, 2026
632 of 643 checks passed
@staabm staabm deleted the less-norm branch February 14, 2026 17:54
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.

3 participants