Closed TomasVotruba closed 1 week ago
It seems only works on private constant, on protected/public, it still needed, see
Actually, there is already rule ConvertStaticPrivateConstantToSelfRector
for that, see https://getrector.com/demo/5c3ff3fc-8b61-45d1-acab-2bb3f974f3af
I added ability to change into self on final class:
Thank you 🙏
In class that has constant in the same class, has no parent class, follwoing should be changed to
self
as no other constant is available.It also fixes PHPStan reports :+1: