public static function mergeQuery($uri, $query)
    {
        return $uri->withQuery((string) (new Query(self::filterUri($uri)->getQuery()))->merge($query));
    }
public static function mergeQuery($uri, $query)
    {
        return $uri->withQuery((string) (new Query(self::filterUri($uri)->getQuery()))->merge($query));
    }
public static function mergeQuery ( $ uri , $ query ) { return $ uri -> withQuery ( ( string ) ( new Query ( self :: filterUri ( $ uri ) -> getQuery ( ) ) ) -> merge ( $ query ) ) ; }
Merge a new query with the existing URI query.

@return Psr7UriInterface|UriInterface
Merge a new query with the existing URI query .