Phan var-type reported as non-empty code statement

A phan var-type statement ('@phan-var TaskSet $tasks';) is marked as a non-empty code statement. See for example: https://sonarcloud.io/project/issues?branch=540391&id=mediawiki-extensions-GrowthExperiments&open=AW2q_r7C-J9j_h4CU1uQ&resolved=false&severities=BLOCKER%2CCRITICAL%2CMAJOR%2CMINOR&sinceLeakPeriod=true&types=BUG

Hi,

Do you have a lot of such literals in the code? I see only one in the file you referenced.
I would recommend then just “won’t fix” the issue.

Hi @Lena, yes we do have many such literals, see for example the codesearch here

I created a ticket to fix this problem https://jira.sonarsource.com/browse/SONARPHP-949

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.