Skip to content
This repository has been archived by the owner on Apr 2, 2021. It is now read-only.

Commit

Permalink
Bugfix: fixed issue where verbose flag caused inverted behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
mfrankruijter committed Aug 16, 2020
1 parent 6eb1e75 commit 4a0ca92
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 2.0.1 - 2020-08-16
### Fixed
- Issue where verbose output worked inverted.

## 2.0.0 - 2020-08-16
### Added
- Ability to output additional context.
Expand Down Expand Up @@ -35,7 +39,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Created the initial implementation of the command package.

# Versions
- [2.0.0 > Unreleased](https://github.com/ulrack/command/compare/2.0.0...HEAD)
- [2.0.1 > Unreleased](https://github.com/ulrack/command/compare/2.0.1...HEAD)
- [2.0.0 > 2.0.1](https://github.com/ulrack/command/compare/2.0.0...2.0.1)
- [1.0.5 > 2.0.0](https://github.com/ulrack/command/compare/1.0.5...2.0.0)
- [1.0.4 > 1.0.5](https://github.com/ulrack/command/compare/1.0.4...1.0.5)
- [1.0.3 > 1.0.4](https://github.com/ulrack/command/compare/1.0.3...1.0.4)
Expand Down
2 changes: 1 addition & 1 deletion src/Component/Command/Output.php
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ private function canOutput(bool $verbose): bool
if ((string) $this->outputMode !== OutputModeEnum::OUTPUT_MODE_QUIET) {
if (
$verbose &&
(string) $this->outputMode !== OutputModeEnum::OUTPUT_MODE_VERBOSE
(string) $this->outputMode === OutputModeEnum::OUTPUT_MODE_VERBOSE
) {
return true;
} elseif (!$verbose) {
Expand Down

0 comments on commit 4a0ca92

Please sign in to comment.