ExportToReflectionFunctionRector

Change export() to ReflectionFunction alternatives

-$reflectionFunction = ReflectionFunction::export('foo');
-$reflectionFunctionAsString = ReflectionFunction::export('foo', true);
+$reflectionFunction = new ReflectionFunction('foo');
+$reflectionFunctionAsString = (string) new ReflectionFunction('foo');

Configure your rector.php:

<?php

use Rector\Config\RectorConfig;
use Rector\Php74\Rector\StaticCall\ExportToReflectionFunctionRector;

return RectorConfig::configure()
    ->withRules([
        ExportToReflectionFunctionRector::class,
    ]);
SETS:  PHP 7.4