Re: [RFC] Enable strict_types checking for curl_setopt()
| From: | Stanislav Malyshev | Date: | Mon, 24 Apr 2017 20:20:10 +0000 |
| Subject: | Re: [RFC] Enable strict_types checking for curl_setopt() | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-98863@lists.php.net to get a copy of this message | ||
Hi!
> 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.
While it may make sense to check types per-option, that's not exactly
what scalar types are supposed to do - this is not argument typing, this
is internal function business logic, and I am not sure confusing the two
is really that good an idea.
--
Stas Malyshev
smalyshev@gmail.com