mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-24 11:44:14 +01:00
Merge pull request #3582 from Philosoft/patch-1
This commit is contained in:
commit
1e1c983f6e
@ -53,7 +53,7 @@ final class MyFirstRector extends AbstractRector
|
||||
return null;
|
||||
}
|
||||
|
||||
$methodCallName = $this->getName($node);
|
||||
$methodCallName = $this->getName($node->name);
|
||||
$newMethodCallName = Strings::replace($methodCallName, '#^set#', 'change');
|
||||
|
||||
$node->name = new Identifier($newMethodCallName);
|
||||
|
Loading…
x
Reference in New Issue
Block a user