Yii2-Curl icon indicating copy to clipboard operation
Yii2-Curl copied to clipboard

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

Open olleharstedt opened this issue 4 years ago • 1 comments

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.

olleharstedt avatar Oct 20 '21 15:10 olleharstedt

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

linslin avatar Nov 14 '21 22:11 linslin