forked from leftypol/leftypol
HttpDriver.php: set requestGet header to default to null
This commit is contained in:
parent
fbf0c051f0
commit
fe5368f096
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue