Yii2-Curl
Yii2-Curl copied to clipboard
setOption require string, but curl_setopt_array expects array of constants or ints
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.
Good one! I will add an software switch which allows to parse an array or string into the setOption method.