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