Haehnchen / idea-php-annotation-plugin

Add PHP annotation support for PhpStorm and IntelliJ
https://plugins.jetbrains.com/plugin/7320
MIT License
251 stars 41 forks source link

Unused import: "Unused statement use" reported when using Doctrine annotations #294

Closed seitechsoftware closed 1 year ago

seitechsoftware commented 1 year ago

The problem is, in code inspection, PHPStorm reports:

Alias 'Doctrine\ORM\Mapping AS ORM' is never used

This has started to happen with the new version of PhpStorm 2023.2, rollback to PhpStorm 2023.1.4 solves de issue.

https://youtrack.jetbrains.com/issue/WI-14448

dsentker commented 1 year ago

I can confirm this issue with PhpStorm 2023.2

image

ricohumme commented 1 year ago

I can confirm this as well. Tried reinstalling the plugin but to no avail. I found this with the Route and IsGranted annotations.

Haehnchen commented 1 year ago

yes, we already have an issue: https://github.com/Haehnchen/idea-php-annotation-plugin/issues/290

based on https://youtrack.jetbrains.com/issue/WI-73212/Import-is-never-used-False-positive-for-symfony-annotations-added-to-PHPDoc with the next bugfix release 2023.2.1 it should work again

Haehnchen commented 1 year ago

PhpStorm bugfix is out, all cases are working again, validated via tests also: https://github.com/Haehnchen/idea-php-annotation-plugin/pull/293

image