Skip to content

Using Bleeding Edge with constants visibility #4859

@jdecool

Description

@jdecool

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions