Use func_num_args instead of counting on func_get_args
parent
aa6d138bdc
commit
a64b652a6b
|
@ -60,7 +60,7 @@ class ProcessExecutor
|
||||||
$cwd = realpath(getcwd());
|
$cwd = realpath(getcwd());
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->captureOutput = count(func_get_args()) > 1;
|
$this->captureOutput = func_num_args() > 1;
|
||||||
$this->errorOutput = null;
|
$this->errorOutput = null;
|
||||||
$process = new Process($command, $cwd, null, null, static::getTimeout());
|
$process = new Process($command, $cwd, null, null, static::getTimeout());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue