src/Viserio/Component/Http/Stream/PhpInputStream.php
public function read($length): string
    {
        $content = parent::read($length);

        if (! $this->reachedEof) {
            $this->cache .= $content;
        }

        if ($this->eof()) {
            $this->reachedEof = true;
        }

        return $content;
    }
public function read($length): string
    {
        $content = parent::read($length);

        if (! $this->reachedEof) {
            $this->cache .= $content;
        }

        if ($this->eof()) {
            $this->reachedEof = true;
        }

        return $content;
    }
{@inheritdoc}