PracticalAfas
PracticalAfas copied to clipboard
PHP 8.1 error?
Hi,
First of all thanks for creating this library. I'm using this for a year now and it works great. Unfortunately, a couple of days ago, I updated PHP 7.4 -> 8.1 and now I get an error in the RestCurlClient.php file. I managed to solve the issue, but I'm not sure if this is the correct/best solution.
Between the line numbers 328 (curl_init) and 329 (curl_setopt_array) I added this code:
if (isset($this->curlOptions[0]) && (strlen($this->curlOptions[0]) == 0)) {
unset($this->curlOptions[0]);
}
if (isset($this->curlOptions[1]) && (strlen($this->curlOptions[1]) == 0)) {
unset($this->curlOptions[1]);
}
Is it possible to check this maybe?
Thanks in advance and regards.