Bug Report
| Subject |
Details |
| Rector version |
tested with 0.15.25 && 0.16.0 |
| Rector Rule |
FinalizePublicClassConstantRector |
Minimal PHP Code Causing Issue
You need namespace to reproduce the problem. I created a repo : https://github.com/Shaurifr/rector-final
NB : It is not dockerized, sorry for that.
Just clone the repo and launch vendor/bin/rector process -> it will make the constant in ComputeMetricsEasy final, which is wrong, because ComputeMiles overrides it.
The problem seems to happen because there is a ComputeMetrics class next to ComputeMetricsEasy.
Expected Behaviour
Do not make the constant final in ComputeMetricsEasy.