public function getStdErr() : ReadableStream { if (null === $this->stderr) { throw new StatusError('The process has not been started.'); } return $this->stderr; }