Fix return value of ProcessExecutor::getErrorOutput, closes #10054
parent
cac4c190f1
commit
c5a02a2b58
|
@ -33,8 +33,11 @@ class ProcessExecutor
|
||||||
|
|
||||||
protected static $timeout = 300;
|
protected static $timeout = 300;
|
||||||
|
|
||||||
protected $captureOutput;
|
/** @var bool */
|
||||||
protected $errorOutput;
|
protected $captureOutput = false;
|
||||||
|
/** @var string */
|
||||||
|
protected $errorOutput = '';
|
||||||
|
/** @var ?IOInterface */
|
||||||
protected $io;
|
protected $io;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -111,7 +114,7 @@ class ProcessExecutor
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->captureOutput = func_num_args() > 3;
|
$this->captureOutput = func_num_args() > 3;
|
||||||
$this->errorOutput = null;
|
$this->errorOutput = '';
|
||||||
|
|
||||||
// TODO in v3, commands should be passed in as arrays of cmd + args
|
// TODO in v3, commands should be passed in as arrays of cmd + args
|
||||||
if (method_exists('Symfony\Component\Process\Process', 'fromShellCommandline')) {
|
if (method_exists('Symfony\Component\Process\Process', 'fromShellCommandline')) {
|
||||||
|
|
Loading…
Reference in New Issue