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

Import is considered "used" if FQCN + ::foo() in doc comment. #291

Open
donquixote opened this issue Jul 16, 2023 · 0 comments
Open

Import is considered "used" if FQCN + ::foo() in doc comment. #291

donquixote opened this issue Jul 16, 2023 · 0 comments

Comments

@donquixote
Copy link

See https://youtrack.jetbrains.com/issue/WI-73430
This only occurs with this plugin enabled.

Steps to Reproduce

use Acme\Plant\Banana;
use Acme\Plant\Strawberry;

/**
 * @see \Acme\Plant\Strawberry
 * @see \Acme\Plant\Banana::foo()
 */
class CC {
}
  1. Enable the plugin. (Later, do the same with the plugin disabled)
  2. Code as above.
  3. Also create the classes for Strawberry and Banana, in the correct namespaces.
  4. Ctrl+Alt+O to remove unused imports.

Expected Result

Both imports are marked as unused.
On Ctrl+Alt+O, both are removed.

Actual Result

The "Banana" import is not marked as unused, and not removed on Ctrl+Alt+O.

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