MethodCallRename with a namespaced class #9067
-
|
Here's my rector.php: <?php
use Rector\Config\RectorConfig;
use Rector\Renaming\Rector\MethodCall\RenameMethodRector;
use Rector\Renaming\ValueObject\MethodCallRename;
return RectorConfig::configure()
->withConfiguredRule(RenameMethodRector::class, [
new MethodCallRename('\SomeExampleNamespace\SomeExampleClass', 'oldMethod', 'newMethod'),
]);Running that via
Running that via https://getrector.com/demo/ gives me this error:
Any ideas? |
Beta Was this translation helpful? Give feedback.
Answered by
prescriptionlifeline
Mar 15, 2025
Replies: 1 comment
-
|
Doing |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
prescriptionlifeline
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Doing
SomeExampleNamespace\SomeExampleClassinstead of\SomeExampleNamespace\SomeExampleClassdid the trick.