StringToArrayArgumentProcessRector

Changes Process string argument to an array

 use Symfony\Component\Process\Process;
-$process = new Process('ls -l');
+$process = new Process(['ls', '-l']);

Configure your rector.php:

<?php

use Rector\Config\RectorConfig;
use Rector\Symfony\Symfony42\Rector\New_\StringToArrayArgumentProcessRector;

return RectorConfig::configure()
    ->withRules([
        StringToArrayArgumentProcessRector::class,
    ]);
SETS:  symfony/* 4.2