Configurable

StaticCallToFuncCallRector

Turns static call to function call.

-OldClass::oldMethod("args");
+new_function("args");

Configure your rector.php:

<?php

use Rector\Config\RectorConfig;
use Rector\Transform\Rector\StaticCall\StaticCallToFuncCallRector;
use Rector\Transform\ValueObject\StaticCallToFuncCall;

return RectorConfig::configure()
    ->withConfiguredRule(StaticCallToFuncCallRector::class, [
        new StaticCallToFuncCall('OldClass', 'oldMethod', 'new_function'),
    ]);
SETS:  PHP 8.0