On Tue, Aug 23, 2016 at 3:20 PM, Alexander Lisachenko <lisachenko...@gmail.com> wrote: > > 2016-08-23 16:13 GMT+03:00 Julien Pauli <jpa...@php.net>: >> >> >> No, How can this be ? B extends A , not A extends B ... >> In this case, B'sfoo() will be called , which is the equivalent to >> having a reflectionMethod from B , so useless to me. > > > > Ok, how can I invoke Parent::whoami() with reflection and get exactly > "Child" as an output? > > class Parent { > public static function whoami() { > echo static::class; > } > } > > class Child extends Parent { > public static function whoami() { > echo "Don't call me now!'; > parent::whoami(); > } > } >
My patch allows that, but I can't find a use case to it. Try it. Julien -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php