idea-php-annotation-plugin
idea-php-annotation-plugin copied to clipboard
When a const is used in an annotation it cannot be found via "find usages"
The following code doesn't show any usages.
// assume there's an annotation called Foo with a public field called "fields"
// file StatusEnum.php
class StatusEnum
{
public const ACCEPTED = 1; // shows nothing on ctrl+click or find usages
}
// file MyClass.php
use StatusEnum;
/**
* @Foo(fields={"status"={StatusEnum::ACCEPTED}})
*/
class MyClass
{
}
It clearly should show usage.
This would be quite a useful feature. The reverse works (i.e. if you ctrl+click on the usage, it takes you to the definition).