You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Used example was intentionally for real enum class, just to see if I can make it work.
I am honestly not sure if this is a bug in PHPStorm or more likely that I messed up but if someone has experience with this, it would be nice to have autocomplete by reading from values() method.
The reason I created this issue is that if this library has meta file, PHPStorm will automatically pick it up. One composer update should be enough for end-users.
The text was updated successfully, but these errors were encountered:
In PHPStorm, when you have code like
$enum->equals()
you don't have autocomplete of possible options.That should be achievable with meta file: https://blog.jetbrains.com/phpstorm/2019/02/new-phpstorm-meta-php-features/
Now... I am not going to lie, I tried and failed:
and failed attempt of meta file (cache invalidated, just in case):
Used example was intentionally for real enum class, just to see if I can make it work.
I am honestly not sure if this is a bug in PHPStorm or more likely that I messed up but if someone has experience with this, it would be nice to have autocomplete by reading from
values()
method.The reason I created this issue is that if this library has meta file, PHPStorm will automatically pick it up. One
composer update
should be enough for end-users.The text was updated successfully, but these errors were encountered: