Skip to content

Using a class property of type Enum triggers BC failure in CI workflow #310

@alexmerlin

Description

@alexmerlin

Bug Report

I'm using the laminas/workflow-continuous-integration workflow and:

"backwardCompatibilityCheck": true

in .laminas-ci.json.

I have a class property of type (Backed)Enum:

class SomeClass
{
    protected VisibilityEnum $visibility = VisibilityEnum::Public;
}

that under the QA Checks (Backward Compatibility Check workflow triggers the error:

[BC] SKIPPED: An enum expression Namespace\VisibilityEnum::Public is not supported in class Namespace\Example in file /src/SomeClass.php (line xx)

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions