Uri::withQuery( $query ): static

In this article

Return

static

Source

public function withQuery($query): UriInterface
{
    if ($this->query === $query = $this->filterQueryAndFragment($query)) {
        return $this;
    }
    $new = clone $this;
    $new->query = $query;
    return $new;
}

User Contributed Notes

You must log in before being able to contribute a note or feedback.