Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes for TimestampFormatter #7608

Merged
merged 1 commit into from
Dec 28, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion lib/private/Console/TimestampFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ class TimestampFormatter implements OutputFormatterInterface {
/** @var IConfig */
protected $config;

/** @var OutputFormatterInterface */
protected $formatter;

/**
* @param IConfig $config
* @param OutputFormatterInterface $formatter
Expand Down Expand Up @@ -75,14 +78,15 @@ public function setStyle($name, OutputFormatterStyleInterface $style) {
* @return bool
*/
public function hasStyle($name) {
$this->formatter->hasStyle($name);
return $this->formatter->hasStyle($name);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh 🙈

}

/**
* Gets style options from style with specified name.
*
* @param string $name
* @return OutputFormatterStyleInterface
* @throws \InvalidArgumentException When style isn't defined
*/
public function getStyle($name) {
return $this->formatter->getStyle($name);
Expand Down