Skip to content

Commit

Permalink
Process::fromShellCommandline() must be of the type string
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilETaylor authored May 29, 2020
1 parent d5d32dd commit 75bfbb1
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions Command/StartWorkerCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,13 +144,6 @@ protected function execute(InputInterface $input, OutputInterface $output)
$env = null;
}

$workerCommand= explode(' ', $workerCommand);
foreach ($workerCommand as $k=> $v) {
if ('' === trim($v)) {
unset($workerCommand[$k]);
}
}

$process = Process::fromShellCommandline($workerCommand, null, $env, null, null);

if (!$input->getOption('quiet')) {
Expand Down

0 comments on commit 75bfbb1

Please sign in to comment.