Hi, 2015-03-19 12:51 GMT+01:00 Yasuo Ohgaki <yohg...@ohgaki.net>: > Distinguishing array and callable is problematic. > Array callable is better to be deprecated in the long run. IMHO.
Then how would you write an callback containing an already constructed object? $a = [$object, 'method']; The alternative is unnecessarily cumbersome: $a = function($methodArg1, $methodArg2) use($object) { return $object->method($methodArg1, $methodArg2); }; -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php