From 849f43dcadef5361a64fa0ed5705a67850cef329 Mon Sep 17 00:00:00 2001 From: Marco Cesarato Date: Sun, 24 Jan 2021 19:41:02 +0100 Subject: [PATCH] fix(config): check valid array --- src/DefaultCommand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DefaultCommand.php b/src/DefaultCommand.php index 9c54c25..54c6040 100644 --- a/src/DefaultCommand.php +++ b/src/DefaultCommand.php @@ -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 = []; }