Merge pull request #3582 from Philosoft/patch-1

This commit is contained in:
Tomas Votruba 2020-06-24 09:43:04 +02:00 committed by GitHub
commit 1e1c983f6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);