Re: [VOTE] Scalar Type Hints
| From: | Matteo Beccati | Date: | Fri, 13 Feb 2015 17:09:26 +0000 |
| Subject: | Re: [VOTE] Scalar Type Hints | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-82625@lists.php.net to get a copy of this message | ||
On 13/02/2015 17:58, Matteo Beccati wrote:
On 13/02/2015 17:29, Benjamin Eberlei wrote:Actually I was mistaken, as in fact the closure body would run in weak-mode. A bit confusing indeed, though ;) Cheers -- Matteo Beccati Development & Consulting - http://www.beccati.com/Wait i almost forgot, it *does* have an effect on me, especially around callback handling: https://gist.github.com/schmittjoh/778e044deacc6f1fe516 Essentially callbacks are evaluated in the mode they are called in, not in the one they are defined.This is indeed interesting. And the failure could even be not so obvious like a mismatch between the callback signature and what the caller expects.