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

setOption require string, but curl_setopt_array expects array of constants or ints #95

Open
olleharstedt opened this issue Oct 20, 2021 · 1 comment
Assignees

Comments

@olleharstedt
Copy link

olleharstedt commented Oct 20, 2021

https://www.php.net/manual/en/function.curl-setopt-array.php

https://github.com/linslin/Yii2-Curl/blob/master/Curl.php#L240

This issue makes it impossible to validate using Psalm. Please fix.

@linslin linslin self-assigned this Nov 14, 2021
@linslin
Copy link
Owner

linslin commented Nov 14, 2021

Good one! I will add an software switch which allows to parse an array or string into the setOption method.

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

No branches or pull requests

2 participants