Re: [RFC] Scalar Type Hinting With Casts (re-opening)
| From: | Jocelyn Fournier | Date: | Sun, 13 Jul 2014 14:25:04 +0000 |
| Subject: | Re: [RFC] Scalar Type Hinting With Casts (re-opening) | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-75401@lists.php.net to get a copy of this message | ||
Le 13/07/2014 15:58, Andrea Faulds a écrit :
On 13 Jul 2014, at 14:54, Jocelyn Fournier <jocelyn.fournier@gmail.com> wrote:BTW, is there a doc somewhere describing what E_NOTICE and E_STRICT really stand for ? (if not, that would be great) I can see indeed in http://php.net//manual/en/function.error-reporting.php "Most of E_STRICT errors are evaluated at the compile time", but "most" means there are already exceptions ? :) That said, either E_NOTICE or E_STRICT would be fine for me. JocelynOk, in this case I would suggest always displaying a warning in E_STRICT since it's the whole purpose of the strict mode :)Isn’t E_STRICT more for compile-time stuff? I’d think E_NOTICE would be the appropriate type here.