Implement `::class` static property
There are no commits yet
Push commits to the source branch or add previously merged commits to review them.
Do not update/delete: Banner broadcast message test data
Do not update/delete: Notification broadcast message test data
This property contains the name of the class in PHP.
In the second commit, I also added very barebones namespace tracking, so the class
property can be resolved correctly for classes inside namespaces.
See https://secure.php.net/manual/en/language.oop5.basic.php#language.oop5.basic.class.class
This conflicts with !2 (merged), I'll rebase if one of these get merged :)
// input
class Foo {}
namespace Bar { class Xyz {} }
Foo::class;
// output
class Foo {
static class = "Foo";
};
{//Bar
class Xyz {
static class = "Bar\\Xyz";
};
}
Foo.class;
Push commits to the source branch or add previously merged commits to review them.