Merge pull request #9451 from staabm/patch-4

Fixed phpdocs
main
Jordi Boggiano 4 years ago committed by GitHub
commit 32c52ec564
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -36,6 +36,9 @@ class ProcessExecutor
protected $errorOutput;
protected $io;
/**
* @psalm-var array<int, array<string, mixed>>
*/
private $jobs = array();
private $runningJobs = 0;
private $maxJobs = 10;
@ -130,10 +133,8 @@ class ProcessExecutor
* starts a process on the commandline in async mode
*
* @param string $command the command to execute
* @param mixed $output the output will be written into this var if passed by ref
* if a callable is passed it will be used as output handler
* @param string $cwd the working directory
* @return int statuscode
* @return Promise
*/
public function executeAsync($command, $cwd = null)
{
@ -311,6 +312,9 @@ class ProcessExecutor
$this->runningJobs--;
}
/**
* @return string[]
*/
public function splitLines($output)
{
$output = trim($output);

Loading…
Cancel
Save