8000 [Console] Display errors even when --quiet is present by Bratstock · Pull Request #37796 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Console] Display errors even when --quiet is present #37796

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
changes from fabbot.io
  • Loading branch information
Bratstock committed Aug 10, 2020
commit 8e4dcc53f1e3df595166874a70284d006b604d8d
2 changes: 1 addition & 1 deletion src/Symfony/Component/Console/Style/SymfonyStyle.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function block($messages, ?string $type = null, ?string $style = null, st

$this->autoPrependBlock();
$this->writeln($this->createBlock($messages, $type, $style, $prefix, $padding, $escape),
self::OUTPUT_NORMAL|($type == 'ERROR' ? self::VERBOSITY_QUIET : 0));
self::OUTPUT_NORMAL | ('ERROR' == $type ? self::VERBOSITY_QUIET : 0));
$this->newLine();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,8 @@ public function testPrintErrorIfWeRunInQuietMode()
->method('writeln')
->with(
$this->anything(),
$this->callback(function($type)
{
return (($type & OutputInterface::VERBOSITY_QUIET) == OutputInterface::VERBOSITY_QUIET) ? true:false;
$this->callback(function ($type) {
return (OutputInterface::VERBOSITY_QUIET == ($type & OutputInterface::VERBOSITY_QUIET)) ? true : false;
}
));
$style = new SymfonyStyle($this->getMockBuilder(InputInterface::class)->getMock(), $output);
Expand Down
0