Jean-FrancoisHIVERT Hi, Found this issue with the last release: <?php enum { case A; } class MyClass { public const $test = MyEnum::A->name; } Thank you for the fix.