Closed
Description
Symfony version(s) affected: master
Description
Using the PhpProcess::fromShellCommandline()
method and passing a simple string echo Symfony
, it seems that PhpProcess constructor requires a string, by default, the fromShellCommandline
implementation depends on the Process
one which requires an array as the first argument.
How to reproduce
Just try to instantiante PhpProcess::fromShellCommandline()
with a string echo Symfony
.
Possible Solution
Additional context
As far as I can see, it seems that the error occurs here:
$process = new static([], $cwd, $env, $input, $timeout);
$process->commandline = $command;
return $process;
PhpProcess
receive an array as the first argument 🤔
Metadata
Metadata
Assignees
Labels
No labels