1
0
Fork 0

Merge pull request #9451 from staabm/patch-4

Fixed phpdocs
pull/9461/head
Jordi Boggiano 2020-11-10 17:03:28 +01:00 committed by GitHub
commit 32c52ec564
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);