OutputWithLogger : fix method for “error” output

2.x 2.7.4
Julien Rosset 6 months ago
parent 7fe0eea59d
commit c4a81079cc

@ -43,7 +43,7 @@ class OutputWithLogger extends OutputWrapper {
* @inheritDoc * @inheritDoc
*/ */
public function getErrorOutput (): self { public function getErrorOutput (): self {
return new static(CliHelper::getErrorOutput($this), $this->logger); return new static(CliHelper::getErrorOutput($this->getOutput()), $this->getLogger());
} }
/** /**

@ -38,7 +38,7 @@ abstract class OutputWrapper implements OutputInterface {
* @return static The “error” output * @return static The “error” output
*/ */
public function getErrorOutput (): self { public function getErrorOutput (): self {
return new static(CliHelper::getErrorOutput($this)); return new static(CliHelper::getErrorOutput($this->getOutput()));
} }
/** /**

Loading…
Cancel
Save