src/ServerRequest.php
public function getQueryParams()
    {
        if (!is_null($this->queryParams)) {
            return $this->queryParams;
        } else {
            if (!is_null($this->getUri())) {
                parse_str($this->getUri()->getQuery(), $this->queryParams);

                return $this->queryParams;
            } else {
                return [];
            }
        }
    }
public function getQueryParams()
    {
        if (!is_null($this->queryParams)) {
            return $this->queryParams;
        } else {
            if (!is_null($this->getUri())) {
                parse_str($this->getUri()->getQuery(), $this->queryParams);

                return $this->queryParams;
            } else {
                return [];
            }
        }
    }
Retrieve query string arguments.

Retrieves the deserialized query string arguments, if any.

Note: the query params might not be in sync with the URI or server
params. If you need to ensure you are only getting the original
values, you may need to parse the query string from `getUri()->getQuery()`
or from the `QUERY_STRING` server param.

@return array