1
0
Fork 0

Fixed phpdocs

pull/9451/head
Markus Staab 2020-11-09 21:22:23 +01:00 committed by GitHub
parent a825581ae2
commit bfafead42e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 3 deletions

View File

@ -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);