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')) { 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();