Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enum issues #621

Open
tarlepp opened this issue Jan 11, 2023 · 0 comments
Open

Enum issues #621

tarlepp opened this issue Jan 11, 2023 · 0 comments

Comments

@tarlepp
Copy link
Contributor

tarlepp commented Jan 11, 2023

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant