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 PhpFilesFinder #3649

Merged
merged 4 commits into from
Apr 23, 2023
Merged

Simplify PhpFilesFinder #3649

merged 4 commits into from
Apr 23, 2023

Conversation

staabm
Copy link
Contributor

@staabm staabm commented Apr 22, 2023

I couldn't measure any perf difference.

it might result in a perf boost when symfony/symfony#50087 is contained in symfony

@staabm staabm force-pushed the find-php branch 2 times, most recently from 06626d8 to 2478c6f Compare April 22, 2023 08:06
@staabm staabm changed the title PhpFilesFinder: More efficient file filter Simplify PhpFilesFinder Apr 23, 2023
@staabm staabm marked this pull request as ready for review April 23, 2023 17:55
@@ -11,13 +11,4 @@ final class StaticNonPhpFileSuffixes
*/
public const SUFFIXES = ['neon', 'yaml', 'xml', 'yml', 'twig', 'latte', 'blade.php', 'tpl'];
Copy link
Member

Choose a reason for hiding this comment

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

I wonder how is this class needed now. What prevents it from being removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it seems you are fine with dropping this constant and you don't mind BC.

therefore I moved the constant to the last remainig consumer and removed the whole class

@TomasVotruba
Copy link
Member

Thanks 👍

@TomasVotruba TomasVotruba merged commit 07a0475 into rectorphp:main Apr 23, 2023
38 checks passed
@staabm staabm deleted the find-php branch April 23, 2023 20:07
samsonasik pushed a commit that referenced this pull request May 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants