-
-
Notifications
You must be signed in to change notification settings - Fork 737
Closed
rectorphp/rector-src
#6944Labels
Description
Bug Report
| Subject | Details |
|---|---|
| Rector version | last dev-main |
| Installed as | composer dependency |
Minimal PHP Code Causing Issue
See https://getrector.com/demo/4004ecef-deb7-492c-b8aa-8849f70ce6c4
<?php
trait MyTrait
{
public function method1()
{
return '';
}
public function method2()
{
$this->method1();
return '';
}
}Responsible rules
RenameMethodRector
Expected Behavior
Rector should also change the $this->method1(); inside the method2() definition to $this->method3();