mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Add more types
This commit is contained in:
parent
e52071a92c
commit
7abc8da7d3
71 changed files with 807 additions and 850 deletions
|
@ -135,7 +135,9 @@ class ProcessExecutorMock extends ProcessExecutor
|
|||
$this->captureOutput = func_num_args() > 3;
|
||||
$this->errorOutput = '';
|
||||
|
||||
$callback = is_callable($output) ? $output : array($this, 'outputHandler');
|
||||
$callback = is_callable($output) ? $output : function (string $type, string $buffer): void {
|
||||
$this->outputHandler($type, $buffer);
|
||||
};
|
||||
|
||||
$commandString = is_array($command) ? implode(' ', $command) : $command;
|
||||
$this->log[] = $commandString;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue