-
-
Notifications
You must be signed in to change notification settings - Fork 41
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
Imported classes are marked as unused when used for constant #51
Comments
@Haehnchen, I would be willing to take a look at this, but could you provide a few pointers on where to look? Additionally do you have any tips for debugging an extension like this? I tried debugging this plugin some time ago to figure out how it works, but most breakpoints that I would set would not go off. |
@thebigb It is easy to reproduce. The doctrine/annotations package allows class constants to be passed to annotations, as in @stefnoten example, I hope that helps you :-) |
Can there anything be done about it? are there workarounds till this is fixed? |
done |
When importing classes for using its constants in an annotation, the imports are incorrectly marked as unused. Example:
I'm using the latest version of the plugin (2.6.2). This makes it impossible to let the IDE automically optimize imports (e.g. via the shortcut or on commit). When not using this feature, it is still error-prone because mistakenly removing such an import will break the code.
The text was updated successfully, but these errors were encountered: