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')) {
|
if (!function_exists('curlRequest')) {
|
||||||
function curlRequest(
|
function curlRequest(
|
||||||
string $url,
|
$url,
|
||||||
string $method = 'GET',
|
$method = 'GET',
|
||||||
array $queryParams = [],
|
$queryParams = [],
|
||||||
array $headers = [],
|
$headers = [],
|
||||||
array|string|null $body = null
|
$body = null
|
||||||
): array {
|
): array {
|
||||||
$curl = curl_init();
|
$curl = curl_init();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue