RemoveUnusedPublicMethodParameterRector

Remove unused parameter in public method on final class without extends and interface

 final class SomeClass
 {
-    public function run($a, $b)
+    public function run($a)
     {
         echo $a;
     }
 }

Configure your rector.php:

<?php

use Rector\Config\RectorConfig;
use Rector\DeadCode\Rector\ClassMethod\RemoveUnusedPublicMethodParameterRector;

return RectorConfig::configure()
    ->withRules([
        RemoveUnusedPublicMethodParameterRector::class,
    ]);
SETS:  Dead Code