MakeInheritedMethodVisibilitySameAsParentRector

Make method visibility same as parent one

 class ChildClass extends ParentClass
 {
-    public function run()
+    protected function run()
     {
     }
 }

 class ParentClass
 {
     protected function run()
     {
     }
 }

Configure your rector.php:

<?php

use Rector\CodingStyle\Rector\ClassMethod\MakeInheritedMethodVisibilitySameAsParentRector;
use Rector\Config\RectorConfig;

return RectorConfig::configure()
    ->withRules([
        MakeInheritedMethodVisibilitySameAsParentRector::class,
    ]);
SETS:  Coding Style