From fe5368f0965cbfd656a9c3822a2dcddc40ad8742 Mon Sep 17 00:00:00 2001 From: Zankaria Date: Fri, 28 Mar 2025 11:09:12 +0100 Subject: [PATCH] HttpDriver.php: set requestGet header to default to null --- inc/Data/Driver/HttpDriver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }