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

https://github.com/datana-gmbh/reproducer-rector-7240

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 18 (18 by maintainers)

Most upvoted comments

I’m checking this and it’s simpler than it seems.

There is no bug. The MyCLabsMethodCallToEnumConstRector was missing these cases πŸ˜ƒ

Ok I will create one πŸ’ͺ🏻