-
-
Notifications
You must be signed in to change notification settings - Fork 946
Closed
phpstan/phpstan-src
#495Labels
Description
Feature request
I'm using Bleeding Edge feature in my project which use an Enum library implementation (myclabs/php-enum).
In my project, I don't want to expose internal constants values.
So my Enum looks like that:
/**
* @method static static FOO()
* @method static static BAR()
*/
class MyEnum extends Enum
{
private const FOO = 'foo';
private const BAR = 'bar';
}But those constants are detected as not being used event if the are (the library resolve it by using PHP magic methods).
Currently the only way to override this variables detection is to use the ReadWritePropertiesExtension interface, but it's not working with constants.
Reactions are currently unavailable