phasync
Uri / withPath

Method

Uri::withPath

Returns a copy of the URI with the path replaced.

Description#

public Uri::withPath(
    $path
): UriInterface

Parameters#

$path

Return values#

UriInterface

See also#

  • Psr\Http\Message\UriInterface::withPath