Rework to be compatible with PHP 7.*

This commit is contained in:
Eduardo Bacarin 2025-07-04 11:45:50 -03:00
parent 480cc208d7
commit 507e68a153

View file

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