source/Toolkit/PaginationHelper.php
public function uri(PaginatorInterface $paginator, int $pageNumber): UriInterface
    {
        return $this->route->uri([$paginator->getParameter() => $pageNumber]);
    }
public function uri(PaginatorInterface $paginator, int $pageNumber): UriInterface
    {
        return $this->route->uri([$paginator->getParameter() => $pageNumber]);
    }
@param PaginatorInterface $paginator
@param int                $pageNumber

@return UriInterface