Closed
Description
In a nutshell
class T {
public const string NAME= 'Test';
}
- Syntactic support with erasure at compile time (see cad16ee)
- Emit type in meta information for PHP < 8.3
- Extend reflection to support types for class constants
- Emit types once the Typed class constants RFC implementation is merged into PHP 8.3
See also
- https://wiki.php.net/rfc/typed_class_constants - RFC
- Typed class constants php/php-src#10444 - RFC implementation
- Emit meta data for class constants #163 - Emit meta information
- Add support for class constants types reflection#32 - Extend reflection
- Omit constant types for all PHP versions < 8.3 #165 - Emit types