AddMethodCallBasedStrictParamTypeRector

Change private method param type to strict type, based on passed strict types

 final class SomeClass
 {
     public function run(int $value)
     {
         $this->resolve($value);
     }

-    private function resolve($value)
+    private function resolve(int $value)
     {
     }
 }

Configure your rector.php:

<?php

use Rector\Config\RectorConfig;
use Rector\TypeDeclaration\Rector\ClassMethod\AddMethodCallBasedStrictParamTypeRector;

return RectorConfig::configure()
    ->withRules([
        AddMethodCallBasedStrictParamTypeRector::class,
    ]);