| Subject | Details |
| :------------- | :---------------------------------------------------------------------------- |
| Plugin | Php Inspections (EA Extended) 4.0.6.3 |
| Language level | PHP 7.4 |
Decided to open a fresh new issue for this even though I've had this issue for years now, just because the other ones have been closed. Cf. #1413, #1571
Several valid @noinspection values are considered invalid
No warnings
PhpStorm 2021.1.2
Windows 10
I have the same problem
Thanks for reporting folks, we are looking into the issue.
1) The problem with PhpUnused is confirmed.
2) SqlAggregates should be SqlAggregatesInspection, SqlRedundantOrderingDirection should be SqlRedundantOrderingDirectionInspection. Is SqlAggregates/SqlRedundantOrderingDirection getting placed by IDE when you suppressing the original warning?
2. `SqlAggregates` should be `SqlAggregatesInspection`, `SqlRedundantOrderingDirection` should be `SqlRedundantOrderingDirectionInspection`.
No, see below.
Is
SqlAggregates/SqlRedundantOrderingDirectiongetting placed by IDE when you suppressing the original warning?
Yes, and only those strings actually suppress the corresponding warnings. Example code (select SQL dialect "MySQL" and disable any schema-related inspections to reproduce):
/** @noinspection SqlRedundantOrderingDirection */
echo 'SELECT * FROM x ORDER BY y ASC';
/** @noinspection SqlAggregates */
echo 'SELECT * FROM x WHERE MAX(1) = 1 GROUP BY bar';
Thanks, @InvisibleSmiley, the examples didn't work for us (not SQL inspection complaints), but we added a fix that should cover the cases with SQL inspections.
Good to see that this is fixed 馃憤
Is this already in the latest version 4.0.6.4 ?
For in this version I still get: [EA] Unknown inspection: PhpUnused.
@flexjoly: yes, the fix is there. That's strange, what's your IDE and its' version?
AFAICS the fix has only been committed on June 19 and the latest version (4.0.6.4) is from June 14 so I'd say the fix hasn't been released yet. I'm one of those eagerly waiting for it to test it out.
Thank you for double checking @InvisibleSmiley ! You right, the fix is not released yet.
Any chance of getting a release out the door that includes the fix any time soon?
Most helpful comment
I have the same problem