src/Connection/HTTPlugConnection.php
private function createRequest(string $method, string $url, array $params): RequestInterface
    {
        $query = http_build_query($params);

        if ('POST' === $method) {
            return $this->messageFactory->createRequest($method, $url, [], $query);
        }

        return $this->messageFactory->createRequest($method, $url.'?'.$query);
    }
private function createRequest(string $method, string $url, array $params): RequestInterface
    {
        $query = http_build_query($params);

        if ('POST' === $method) {
            return $this->messageFactory->createRequest($method, $url, [], $query);
        }

        return $this->messageFactory->createRequest($method, $url.'?'.$query);
    }
@param string $method
@param string $url
@param array  $params

@return RequestInterface