Skip to content

Commit

Permalink
Handle slightly-incompatible --verbose definitions.
Browse files Browse the repository at this point in the history
  • Loading branch information
bobthecow committed Apr 6, 2020
1 parent 5f97c26 commit 8a6a600
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,11 @@ private static function getVerbosityFromInput(InputInterface $input)

// Best case, input is properly bound and validated.
if ($input->hasOption('verbose')) {
// Have to handle this case explicitly because we need ===. Yay PHP!
if ($input->getOption('verbose') === true) {
return self::VERBOSITY_VERBOSE;
}

switch ($input->getOption('verbose')) {
case '-1':
return self::VERBOSITY_QUIET;
Expand Down

0 comments on commit 8a6a600

Please sign in to comment.