src/Viserio/Component/Http/Request.php
public function withMethod($method): RequestInterface
    {
        $method = $this->filterMethod($method);

        $new         = clone $this;
        $new->method = $method;

        return $new;
    }
public function withMethod($method): RequestInterface
    {
        $method = $this->filterMethod($method);

        $new         = clone $this;
        $new->method = $method;

        return $new;
    }
{@inheritdoc}