Skip to content

Add conditional method renaming rector#2047

Merged
TomasVotruba merged 2 commits intorectorphp:masterfrom
markstory:rename-method-on-param
Sep 30, 2019
Merged

Add conditional method renaming rector#2047
TomasVotruba merged 2 commits intorectorphp:masterfrom
markstory:rename-method-on-param

Conversation

@markstory
Copy link
Copy Markdown
Contributor

We have a few renames in CakePHP that are parameter dependent. This rector lets a method be renamed based on the first parameter value. I've only supported string values as that is the current requirements.

Copy link
Copy Markdown
Member

@TomasVotruba TomasVotruba left a comment

Choose a reason for hiding this comment

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

Nice job! I've added few comments, mostly naming

@TomasVotruba
Copy link
Copy Markdown
Member

TomasVotruba commented Sep 27, 2019

Please rebased on master, that should also fix CI

We have a few renames in CakePHP that are parameter dependent. This
rector lets a method be renamed based on the first parameter value. I've
only supported string values as that is the current requirements.
@markstory markstory force-pushed the rename-method-on-param branch from ec88392 to 018edbe Compare September 29, 2019 02:57
@TomasVotruba
Copy link
Copy Markdown
Member

Looks good to me, thanks 👍

@TomasVotruba TomasVotruba self-requested a review September 30, 2019 07:21
@TomasVotruba TomasVotruba merged commit 3191a61 into rectorphp:master Sep 30, 2019
TomasVotruba added a commit that referenced this pull request Apr 10, 2022
rectorphp/rector-src@0227d24 Merge InArrayAndArrayKeysToArrayKeyExistsRector to ArrayKeysAndInArrayToArrayKeyExistsRector with almost identical behavior (#2047)
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