Skip to content

Commit afd3cb7

Browse files
authored
Include arguments provided in the result returned by runComposerCommand()
1 parent 9eb0c1b commit afd3cb7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Commands/BaseCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,12 +168,14 @@ protected function runComposerCommand(): array
168168
$return = [
169169
'code' => $code,
170170
'output' => preg_split('/(\n|\r\n)/', trim($output->fetch())),
171+
'arguments' => $arguments,
171172
];
172173
} catch (\Exception $e) {
173174
$return = [
174175
'code' => 1,
175176
'output' => preg_split('/(\n|\r\n)/', $e->getMessage()),
176177
'exception' => $e,
178+
'arguments' => $arguments,
177179
];
178180
}
179181

0 commit comments

Comments
 (0)