cleaned up composer
This commit is contained in:
@@ -21,9 +21,9 @@ final class NullOutputFormatter implements OutputFormatterInterface
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function format(?string $message): void
|
||||
public function format(?string $message): ?string
|
||||
{
|
||||
// do nothing
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -31,11 +31,8 @@ final class NullOutputFormatter implements OutputFormatterInterface
|
||||
*/
|
||||
public function getStyle(string $name): OutputFormatterStyleInterface
|
||||
{
|
||||
if ($this->style) {
|
||||
return $this->style;
|
||||
}
|
||||
// to comply with the interface we must return a OutputFormatterStyleInterface
|
||||
return $this->style = new NullOutputFormatterStyle();
|
||||
return $this->style ?? $this->style = new NullOutputFormatterStyle();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user