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

[Downgrade PHP 7.0] Add DowngradeClosureCallRector #1304

Merged
merged 4 commits into from
Nov 25, 2021
Merged

[Downgrade PHP 7.0] Add DowngradeClosureCallRector #1304

merged 4 commits into from
Nov 25, 2021

Conversation

villfa
Copy link
Contributor

@villfa villfa commented Nov 25, 2021

No description provided.

private function isMethodName(MethodCall $methodCall, string $expectedName): bool
{
if ($methodCall->name instanceof Identifier) {
$comparison = strcasecmp($methodCall->name->toString(), $expectedName);
Copy link
Member

Choose a reason for hiding this comment

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

this may be needed to be moved to separate private method to be reusable so can change in one place when there is logic change for comparison.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@TomasVotruba
Copy link
Member

@villfa Thank you for you work 👍 It's amazing how you cover every downgrade step one by one 🙇

@samsonasik Feel free to merge as you feel this is ready 👍

@samsonasik samsonasik merged commit 50a78a6 into rectorphp:main Nov 25, 2021
@samsonasik
Copy link
Member

Thank you @villfa

@villfa villfa deleted the feat/downgrade-closure-call branch November 25, 2021 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants