escapeshellarg(str_replace('\', '/', $binary)) of type string is incompatible with the type array expected by parameter $command of Symfony\Component\Process\Process::__construct().
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
15
$process = new Process(/** @scrutinizer ignore-type */ escapeshellarg(str_replace('\\', '/', $binary)));
Loading history...
16
$result = $process->mustRun()->getOutput();
17
if (!preg_match('~7-Zip (\d+\.\d+)~i', $result, $version))