Rework to be compatible with PHP 7.*
This commit is contained in:
parent
480cc208d7
commit
507e68a153
1 changed files with 5 additions and 5 deletions
|
@ -2,11 +2,11 @@
|
|||
|
||||
if (!function_exists('curlRequest')) {
|
||||
function curlRequest(
|
||||
string $url,
|
||||
string $method = 'GET',
|
||||
array $queryParams = [],
|
||||
array $headers = [],
|
||||
array|string|null $body = null
|
||||
$url,
|
||||
$method = 'GET',
|
||||
$queryParams = [],
|
||||
$headers = [],
|
||||
$body = null
|
||||
): array {
|
||||
$curl = curl_init();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue