OutputWithLogger : fix method for “error” output

master 3.8.6
Julien Rosset 6 months ago
parent 8055eb9132
commit 6c31a16e80

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

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

Loading…
Cancel
Save