Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP 8.1 error? #12

Open
PDirkx opened this issue Jan 9, 2023 · 0 comments
Open

PHP 8.1 error? #12

PDirkx opened this issue Jan 9, 2023 · 0 comments

Comments

@PDirkx
Copy link

PDirkx commented Jan 9, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant