src/Viserio/Component/Http/AbstractMessage.php
public function withProtocolVersion($version): self
    {
        $this->validateProtocolVersion($version);

        if ($this->protocol === $version) {
            return $this;
        }

        $new           = clone $this;
        $new->protocol = $version;

        return $new;
    }
public function withProtocolVersion($version): self
    {
        $this->validateProtocolVersion($version);

        if ($this->protocol === $version) {
            return $this;
        }

        $new           = clone $this;
        $new->protocol = $version;

        return $new;
    }
{@inheritdoc}