phpinsights icon indicating copy to clipboard operation
phpinsights copied to clipboard

Enum issues

Open tarlepp opened this issue 1 year ago • 0 comments

Q A
Bug report? yes
Feature request? no
Library version 2.6.1

Looks like if I have enum like:

enum Language: string
{
    use GetValues;

    case EN = 'en';
    case FI = 'fi';
}

PhpInsights is complaining:

• [Style] Unused uses:
  src/Enum/Language.php:22: Type GetValues is not used in this file.

• [Style] Use spacing:
  src/Enum/Language.php:22: Expected 0 lines between same types of use statement, found 10.

And both of those are clearly false positives - right?

tarlepp avatar Jan 11 '23 19:01 tarlepp