From 8bc043065a8d7d50861cb2d2dcf15cf10297a7c4 Mon Sep 17 00:00:00 2001 From: Raul Ferriz Date: Sat, 4 Jan 2014 10:17:24 +0100 Subject: [PATCH] Check for option verbose instead of get it. This avoid crashing when called by daemonise command. --- PHPCI/Command/RunCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PHPCI/Command/RunCommand.php b/PHPCI/Command/RunCommand.php index d635b8a2..8415fafe 100644 --- a/PHPCI/Command/RunCommand.php +++ b/PHPCI/Command/RunCommand.php @@ -68,7 +68,7 @@ class RunCommand extends Command // For verbose mode we want to output all informational and above // messages to the symphony output interface. - if ($input->getOption('verbose')) { + if ($input->hasOption('verbose')) { $this->logger->pushHandler( new OutputLogHandler($this->output, Logger::INFO) );