PHP 8.2 added support for fetching properties of enums in const expressions: https://wiki.php.net/rfc/fetch_property_in_const_expressions