diff --git a/lib/private/Console/TimestampFormatter.php b/lib/private/Console/TimestampFormatter.php index 66dd38e6ac325..9ced9e18b31f5 100644 --- a/lib/private/Console/TimestampFormatter.php +++ b/lib/private/Console/TimestampFormatter.php @@ -31,6 +31,9 @@ class TimestampFormatter implements OutputFormatterInterface { /** @var IConfig */ protected $config; + /** @var OutputFormatterInterface */ + protected $formatter; + /** * @param IConfig $config * @param OutputFormatterInterface $formatter @@ -75,7 +78,7 @@ public function setStyle($name, OutputFormatterStyleInterface $style) { * @return bool */ public function hasStyle($name) { - $this->formatter->hasStyle($name); + return $this->formatter->hasStyle($name); } /** @@ -83,6 +86,7 @@ public function hasStyle($name) { * * @param string $name * @return OutputFormatterStyleInterface + * @throws \InvalidArgumentException When style isn't defined */ public function getStyle($name) { return $this->formatter->getStyle($name);