rector: Problem with `MyCLabsClassToEnumRector` or `MyCLabsMethodCallToEnumConstRector`
Bug Report
| Subject | Details |
|---|---|
| Rector version | e.g. v0.11.5 (invoke vendor/bin/rector --version) |
https://getrector.org/demo/187f61e9-86df-47f6-a0c1-fa56bfea821f
This should be refactored to an enum, which works locally, but not in the demo. I want to showcase an example which makes problems.
Can you please help me to get the demo working?
Minimal PHP Code Causing Issue
later
Expected Behaviour
later
Reproducer
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 18 (18 by maintainers)
Iβm checking this and itβs simpler than it seems.
There is no bug. The
MyCLabsMethodCallToEnumConstRectorwas missing these cases πHere you go @TomasVotruba https://github.com/datana-gmbh/reproducer-rector-7240/tree/master#reproducer-rector-7240
Ok I will create one πͺπ»