Another small RFC, to allow $object::class syntax: https://wiki.php.net/rfc/class_name_literal_on_object
Hi Nikita, Glad to see enhancements to ::class. Open questions, given: class Foo {} $foo = new Foo; echo $foo::class; // Foo $fooClass = Foo::class; echo $foo::class; // TypeError b/c string? $fooAnon = new class extends Foo {}; echo $fooAnon::class; // TypeError or class@anonymous? There's prob a few more edge cases, but this is a start. -ralph -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php