@ -43,7 +43,7 @@ class OutputWithLogger extends OutputWrapper {
* @inheritDoc
*/
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 new static(CliHelper::getErrorOutput($this));
return new static(CliHelper::getErrorOutput($this->getOutput()));