8000 feature #58074 [Console][Process] Add `$verbosity` argument to `mustR… · symfony/symfony@5b35328 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5b35328

Browse files
feature #58074 [Console][Process] Add $verbosity argument to mustRun helper method (willrowe)
This PR was squashed before being merged into the 7.2 branch. Discussion ---------- [Console][Process] Add `$verbosity` argument to `mustRun` helper method | Q | A | ------------- | --- | Branch? | 7.2 | Bug fix? | no | New feature? | yes | Deprecations? | no | License | MIT This adds a 'verbosity' argument to 'mustRun' in order to match 'run'. There are no existing tests for 'mustRun', just 'run'. Commits ------- 5eb76bf [Console][Process] Add `$verbosity` argument to `mustRun` helper method
2 parents d635044 + 5eb76bf commit 5b35328

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Symfony/Component/Console/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ CHANGELOG
55
---
66

77
* Add support for `FORCE_COLOR` environment variable
8+
* Add `verbosity` argument to `mustRun` process helper method
89

910
7.1
1011
---

src/Symfony/Component/Console/Helper/ProcessHelper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ public function run(OutputInterface $output, array|Process $cmd, ?string $error
9494
*
9595
* @see run()
9696
*/
97-
public function mustRun(OutputInterface $output, array|Process $cmd, ?string $error = null, ?callable $callback = null): Process
97+
public function mustRun(OutputInterface $output, array|Process $cmd, ?string $error = null, ?callable $callback = null, int $verbosity = OutputInterface::VERBOSITY_VERY_VERBOSE): Process
9898
{
99-
$process = $this->run($output, $cmd, $error, $callback);
99+
$process = $this->run($output, $cmd, $error, $callback, $verbosity);
100100

101101
if (!$process->isSuccessful()) {
102102
throw new ProcessFailedException($process);

0 commit comments

Comments
 (0)
0