Configurable

FunctionToFirstArgMethodRector

Replaces function calls where the first argument is an object with a method call on that object

-$url = taxonomy_term_uri($term);
+$url = $term->toUrl();

Configure your rector.php:

<?php

use DrupalRector\Rector\Deprecation\FunctionToFirstArgMethodRector;
use DrupalRector\Rector\ValueObject\FunctionToFirstArgMethodConfiguration;
use Rector\Config\RectorConfig;

return RectorConfig::configure()
    ->withConfiguredRule(FunctionToFirstArgMethodRector::class, [
        new FunctionToFirstArgMethodConfiguration('9.3.0', 'taxonomy_term_uri', 'toUrl'),
    ]);