3 ms·
its implicitly addressed by saying enums map to objects and clarifying how "::class" works, i.e. enum_exists is not necessary, because its implementation would
by beberlei 6y ago
its implicitly addressed by saying enums map to objects and clarifying how "::class" works, i.e. enum_exists is not necessary, because its implementation would essentially be class_exists.
- pdenton 6y agoAh, right. The assumption that "new ReflectionClass($qcn)" where "assert(class_exists($qcn))" works should still be valid as RefelctionEnum[sic] extends ReflectionClass. I'm not completely certain on this, though. If not, it'd definitely break things.
- beberlei 6y agoits definitely a weak point of the RFC at the moment.