Skip to content

Commit

Permalink
Fail explicit when default Database values differ
Browse files Browse the repository at this point in the history
Also simplified the code by removing the else and using that as the
default outcome.
  • Loading branch information
vmcj committed Aug 1, 2023
1 parent f5a1425 commit 5f08b6c
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,12 @@ protected function execute(InputInterface $input, OutputInterface $output): int
break;
}
}
if (empty($messages)) {
$style->success('All default values have the correct type');
} else {
if (!empty($messages)) {
$style->error('Some default values have the wrong type:');
$style->listing($messages);
return Command::FAILURE;
}

$style->success('All default values have the correct type');
return Command::SUCCESS;
}
}

0 comments on commit 5f08b6c

Please sign in to comment.