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

PHPStorm @noinspection causes Missing Import warning #190

Closed
renjinsk opened this issue Jun 1, 2020 · 3 comments
Closed

PHPStorm @noinspection causes Missing Import warning #190

renjinsk opened this issue Jun 1, 2020 · 3 comments

Comments

@renjinsk
Copy link

renjinsk commented Jun 1, 2020

While working with PHPStorm and adding a @noninspection annotation for a file or method phpdoc block it will cause an annotation warning with the message [Annotations] Missing import
To "silence" it you have to add another noinspection annotation AnnotationMissingUseInspection

So, in case you do this for the file, you endup with something like this

<?php
/** @noinspection AnnotationMissingUseInspection */
/** @noinspection PhpUndefinedClassInspection */

This happens with the latest version 7.0.0

@blowski
Copy link

blowski commented Jun 1, 2020

Related - I'm getting "Missing import" warnings for PHPUnit annotations, like @test, in the new 7.0 version.

Haehnchen added a commit that referenced this issue Jun 1, 2020
fix PHPStorm @noinspection causes Missing Import warning #190
Haehnchen added a commit that referenced this issue Jun 1, 2020
only allow valid class "use" annotating missing import #190
@Haehnchen
Copy link
Owner

fixed with 7.0.1

@blowski
Copy link

blowski commented Jun 1, 2020

That was incredibly quick, thanks @Haehnchen

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

3 participants