src/Viserio/Component/Http/Stream/BufferStream.php
public function write($string): int
    {
        $this->buffer .= $string;

        if (\strlen($this->buffer) >= $this->hwm) {
            return 0;
        }

        return \strlen($string);
    }
public function write($string): int
    {
        $this->buffer .= $string;

        if (\strlen($this->buffer) >= $this->hwm) {
            return 0;
        }

        return \strlen($string);
    }
{@inheritdoc}