CallUserFuncArrayToVariadicRector

Replace call_user_func_array() with variadic

 class SomeClass
 {
     public function run()
     {
-        call_user_func_array('some_function', $items);
+        some_function(...$items);
     }
 }

Configure your rector.php:

<?php

use Rector\CodingStyle\Rector\FuncCall\CallUserFuncArrayToVariadicRector;
use Rector\Config\RectorConfig;

return RectorConfig::configure()
    ->withRules([
        CallUserFuncArrayToVariadicRector::class,
    ]);
SETS:  Coding Style