Skip to content

Simplify PhpFilesFinder#3649

Merged
TomasVotruba merged 4 commits intorectorphp:mainfrom
staabm:find-php
Apr 23, 2023
Merged

Simplify PhpFilesFinder#3649
TomasVotruba merged 4 commits intorectorphp:mainfrom
staabm:find-php

Conversation

@staabm
Copy link
Copy Markdown
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
@staabm staabm requested a review from TomasVotruba as a code owner 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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member

Thanks 👍

@TomasVotruba TomasVotruba merged commit 07a0475 into rectorphp:main Apr 23, 2023
@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

Development

Successfully merging this pull request may close these issues.

2 participants