'non_existing_binaries' 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
16
$process = new Process(/** @scrutinizer ignore-type */ 'non_existing_binaries');
Loading history...
17
try {
18
$process->mustRun();
19
} catch (ExceptionInterface $exception) {
20
$processFailure = new ProcessFailedException($process, $exception);
21
$this->assertSame(
22
'Process with command "non_existing_binaries" has failed running with exit code 127(Command not found)',
23
$processFailure->getMessage()
24
);
25
}
26
}
27
28
public function testSymfonyBootingProcessFailedException()
29
{
30
31
$process = new Process('echo test', __DIR__ . '/notfound/');
'echo test' 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