What am i missing here. Code seems perfectly fine to me, but code validation keeps complaining about it.
PHP version is set to v8.1
Anyone an idea how to solve this, since I dont see any other related messages on this forum i suppose it must me me doing something wrong, but no idea what.
<?php
enum JustAnEnum: string {
case a = "value 1";
case b = "value 2";
}
echo JustAnEnum::a->value;