src/Uri.php
protected function withString(string $string, string $name = 'query'): self
    {
        $string = ltrim((string) $string, '#');
        $clone = clone $this;
        $clone->{$name} = $this->filterQuery($string);

        return $clone;
    }
protected function withString(string $string, string $name = 'query'): self
    {
        $string = ltrim((string) $string, '#');
        $clone = clone $this;
        $clone->{$name} = $this->filterQuery($string);

        return $clone;
    }
protected function withString ( string $ string , string $ name = 'query' ) : self { $ string = ltrim ( ( string ) $ string , '#' ) ; $ clone = clone $ this ; $ clone -> { $ name } = $ this -> filterQuery ( $ string ) ; return $ clone ; }
withString function.

@access protected
@param string $name (default: 'query')
withString function .