So, there are some issues with PHP 8.1 Enums, i'll try to list them here.
I have an Enum called UserRoles, the intellisense works as shown below

but it only suggests the enum cases, it's missing the methods from() tryFrom() and cases()
when i try to use any of these methods, i get "Call to unknown method"

also, when calling a case, can you suggest ->value and ->name? here's an example

last but not least, i have a suggestion, currently i can write a backed enum with the type int and pass string values to its cases without the editor complaining, that is not allowed in php, so is it possible to trigger an error when the type is incorrect?

Thanks