Skip to content

Do not change method if name does not need to change#700

Merged
samsonasik merged 1 commit intorectorphp:mainfrom
carlos-granados:fix-action-suffix-remover
Feb 14, 2025
Merged

Do not change method if name does not need to change#700
samsonasik merged 1 commit intorectorphp:mainfrom
carlos-granados:fix-action-suffix-remover

Conversation

@carlos-granados
Copy link
Copy Markdown
Contributor

The ActionSuffixRemoverRector did not check if the new name was the same as the previous name and always tried to change it, resulting in the rule being reapplied with no need for it. This PR checks if the name needs to change and only updates the method if that is the case

@samsonasik samsonasik enabled auto-merge (squash) February 14, 2025 13:02
@samsonasik
Copy link
Copy Markdown
Member

Thank you @carlos-granados

@samsonasik samsonasik merged commit 3fb5171 into rectorphp:main Feb 14, 2025
5 checks passed
@carlos-granados carlos-granados deleted the fix-action-suffix-remover branch March 28, 2025 05:29
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