Closed arderyp closed 1 year ago
additionally, phpstan annotations in the class docblock aren't updated to reflect new parent abstract (when using generics, for example)
Thank you for your report!
We'll need an isolated failing demo link from: http://getrector.org/demo, that way we can reproduce the bug.
cool, I will try to reproduce it there when I get a chance. It may be rather complicated, because some children were affected, and others were not. I still havent figured out the pattern.
Hi, after few usages of this rule, we've decided to remove it, as it does not work reliable because we cannot get the whole project context.
Better handle these manually in safer way :+1:
I'm using
Rector\PHPUnit\Set\PHPUnitSetList::PHPUNIT_100
Here is the basic hierarchy before the rector run:
AbstractWebTest
BEFORE
AFTER
AbstractControllerTest
BEFORE
AFTER
ExampleControllerTest
This class was completely untouched by rector, when its
extends
clause should have been changed to reflect the new name of the child abstract (AbstractControllerTest --> AbstractControllerTestCase
)