diff --git a/src/ShellProvider/LocalShellProvider.php b/src/ShellProvider/LocalShellProvider.php index 672fea5a..cf73b1ea 100644 --- a/src/ShellProvider/LocalShellProvider.php +++ b/src/ShellProvider/LocalShellProvider.php @@ -135,7 +135,11 @@ public function setup() "", $buffer ); - fwrite($type === Process::ERR ? STDERR : STDOUT, $buffer); + if ($this->output && $type === Process::OUT) { + $this->output->write($buffer); + } else { + fwrite($type === Process::ERR ? STDERR : STDOUT, $buffer); + } }); if ($this->process->isTerminated() && !$this->process->isSuccessful()) { throw new \RuntimeException(sprintf(