phasync
Uri / withQuery

Method

Uri::withQuery

Returns a copy of the URI with the query replaced.

Description#

public Uri::withQuery(
    $query
): UriInterface

Parameters#

$query

Return values#

UriInterface

See also#

  • Psr\Http\Message\UriInterface::withQuery