Configurable

RemoveMethodCallParamRector

Remove parameter of method call

 final class SomeClass
 {
     public function run(Caller $caller)
     {
-        $caller->process(1, 2);
+        $caller->process(1);
     }
 }

Configure your rector.php:

<?php

use Rector\Arguments\Rector\MethodCall\RemoveMethodCallParamRector;
use Rector\Arguments\ValueObject\RemoveMethodCallParam;
use Rector\Config\RectorConfig;

return RectorConfig::configure()
    ->withConfiguredRule(RemoveMethodCallParamRector::class, [
        new RemoveMethodCallParam('Caller', 'process', 1),
    ]);