Bug Report
| Subject |
Details |
| Rector version |
rector-src 820c9dad |
tests/Issues/Issue9388 in this repository registers two rules. Three run.
Minimal PHP Code Causing Issue
Boot tests/Issues/Issue9388/config/configured_rule.php and ask the container:
findByContract(RectorInterface::class): RenameClassRector, ExtbaseAnnotationToAttributeRector, StringClassNameToClassConstantRector
getMainRectorClasses(): RenameClassRector, ExtbaseAnnotationToAttributeRector
StringClassNameToClassConstantRector is never registered by that config. It runs against every fixture of the test.
Expected Behaviour
Only registered rules run.
Filing this as an issue rather than a PR — rectorphp/rector-src#8402 was closed — so someone else can pick up a patch.
Bug Report
820c9dadtests/Issues/Issue9388in this repository registers two rules. Three run.Minimal PHP Code Causing Issue
Boot
tests/Issues/Issue9388/config/configured_rule.phpand ask the container:StringClassNameToClassConstantRectoris never registered by that config. It runs against every fixture of the test.Expected Behaviour
Only registered rules run.
Filing this as an issue rather than a PR — rectorphp/rector-src#8402 was closed — so someone else can pick up a patch.