Hello internals, I'd like to propose an enhancement to curl_setopt() <http://php.net/manual/en/function.curl-setopt.php> which is used to configure a given curl session. The second argument of this function defines which option to set and the third argument provides the corresponding value to use.
Because each option expects the value to be a specific type, it makes sense to enforce these types in strict type checking mode. I'd therefore like to propose that we introduce strict type enforcement inside curl_setopt() when "declare(strict_types=1);" is being used. The full details of the proposal, including the proposed patch, can be found here: https://wiki.php.net/rfc/curl_setopt_strict_types Huge thanks to Sara Golemon for the idea and creating the patch! Cheers, Colin O'Dell colinod...@gmail.com