Skip to content

Commit

Permalink
fix(config): check valid array
Browse files Browse the repository at this point in the history
  • Loading branch information
marcocesarato committed Jan 24, 2021
1 parent ddcea21 commit 849f43d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DefaultCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ protected function execute(InputInterface $input, OutputInterface $output)
$this->settings = require $config;
}

if (Configuration::validate($this->settings)) {
$output->error('Not a valid configuration! Using default settings.');
if (!Configuration::validate($this->settings)) {
$outputStyle->error('Not a valid configuration! Using default settings.');
$this->settings = [];
}

Expand Down

0 comments on commit 849f43d

Please sign in to comment.