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

Simplify FileIteratorSourceLocator, prevent stat calls on paths that aren't PHP files #1477

Merged
merged 1 commit into from
Jan 6, 2025

Conversation

staabm
Copy link
Contributor

@staabm staabm commented Jan 6, 2025

I think this saves a system call per non PHP file as getRealPath is only invoked for php-files after the PR

Copy link
Member

@Ocramius Ocramius left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@Ocramius Ocramius self-assigned this Jan 6, 2025
@Ocramius Ocramius added this to the 6.52.0 milestone Jan 6, 2025
@Ocramius Ocramius changed the title Simplify FileIteratorSourceLocator Simplify FileIteratorSourceLocator, prevent stat calls on paths that aren't PHP files Jan 6, 2025
@Ocramius Ocramius merged commit 9a39c1f into Roave:6.52.x Jan 6, 2025
30 checks passed
@Ocramius
Copy link
Member

Ocramius commented Jan 6, 2025

Thanks @staabm!

@staabm staabm deleted the simple branch January 6, 2025 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants