Remove final from constants in classes defined as final
final class SomeClass
{
- final public const NAME = 'value';
+ public const NAME = 'value';
}
Configure your rector.php
:
<?php
use Rector\CodingStyle\Rector\ClassConst\RemoveFinalFromConstRector;
use Rector\Config\RectorConfig;
return RectorConfig::configure()
->withRules([
RemoveFinalFromConstRector::class,
]);