Changes method visibility from final private to only private
class SomeClass
{
- final private function getter() {
+ private function getter() {
return $this;
}
}
Configure your rector.php
:
<?php
use Rector\Config\RectorConfig;
use Rector\Php80\Rector\ClassMethod\FinalPrivateToPrivateVisibilityRector;
return RectorConfig::configure()
->withRules([
FinalPrivateToPrivateVisibilityRector::class,
]);