HttpDriver.php: set requestGet header to default to null

This commit is contained in:
Zankaria 2025-03-28 11:09:12 +01:00
parent fbf0c051f0
commit fe5368f096

View file

@ -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);
}