On 29 September 2015 at 14:25, Dan Ackroyd <dan...@basereality.com> wrote: > Hello internals, > > Here is a draft RFC to make the callable type in PHP be consistent and > have much fewer surprises. > > https://wiki.php.net/rfc/consistent_callables
Hello again, I'd like to give everyone an update on the 'Consitent Callables RFC' https://wiki.php.net/rfc/consistent_callables It was brought to my attention that the main piece of work for this RFC that would need to target PHP 7.1 was actually already implemented in PHP 5.5, and that self::class, and parent::class already resolve to the correct classnames, i.e. the code below already works. As it won't be feasible to introduce the main change before PHP 8, I plan to wait to formally propose the RFC until closer to the time when we are thinking of starting PHP 8 development, or probably around June 2017 - whichever comes first. cheers Dan class A { public static function whoAreYou() { echo "I am A!\n"; } } class B extends A { public static function whoAreYou() { echo "I am B!\n"; } public static function test() { $fn = [parent::class, 'whoAreYou']; $fn(); $fn = [self::class, 'whoAreYou']; $fn(); } } B::test(); -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php