src/Bridge/Psr7/Stream.php
public function read(int $length = null): Str
    {
        if (is_null($length)) {
            return new Str($this->stream->getContents());
        }

        return new Str($this->stream->read($length));
    }
public function read(int $length = null): Str
    {
        if (is_null($length)) {
            return new Str($this->stream->getContents());
        }

        return new Str($this->stream->read($length));
    }
{@inheritdoc}