diff --git a/inc/Data/Driver/HttpDriver.php b/inc/Data/Driver/HttpDriver.php index 197f2681..2e379f27 100644 --- a/inc/Data/Driver/HttpDriver.php +++ b/inc/Data/Driver/HttpDriver.php @@ -43,7 +43,7 @@ class HttpDriver { * @return string Returns the body of the response. * @throws RuntimeException Throws on IO error. */ - public function requestGet(string $endpoint, ?array $data, ?array $headers, int $timeout = 0): string { + public function requestGet(string $endpoint, ?array $data, ?array $headers = null, int $timeout = 0): string { if (!empty($data)) { $endpoint .= '?' . \http_build_query($data); }