Skip to content

PHP 8.1 ENUMS are detected as GOTO Statements #557

@BlackScorp

Description

@BlackScorp
Q A
Bug report? yes
Feature request? no
Library version v2.1.0

I use in my current Project PHP 8.1 new Feature enums

enum Status: string{
case DEFAULT = 'default';
case DRAFT = 'draft';
}

running phpinsights leads the part with enum Status: string into "Use of the GOTO language construct is discouraged" error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions