On Sun, Jun 5, 2011 at 17:52, Felipe Pena <felipe...@gmail.com> wrote: > Hi all, > Reading our bug tracker I noticed a good feature request [1] from 2009 which > points to an interesting feature that I think makes sense for us, since we > are now working with $f() using objects and strings, and the array('class', > 'method') is an old known for call_user_func()-like functions.
I like it. I also think we should implement "callable" typehint. A lot of framworks are now adopting Closure as a typehint for that, which is annoying due to the fact you have to wrap anything else in a closure just to pass that typehint. Essentially the callable typehint would be the same as is_callable($arg, true); That means I can pass in any string with a function name, an array (with class+methodname), and a closure. -Hannes -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php