Re: [RFC] Scalar Type Hinting With Casts (re-opening)
| From: | Stas Malyshev | Date: | Mon, 14 Jul 2014 23:01:23 +0000 |
| Subject: | Re: [RFC] Scalar Type Hinting With Casts (re-opening) | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-75517@lists.php.net to get a copy of this message | ||
Hi!
> In general, I am not in favour of casting typehints, as it would be a
> different behaviour from the hard-check typehints that we already have
> for classes and arrays.
It already is. All internal functions behave this way.
--
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/