False positive with a PHP constant called NEW

SonarQube: Version 8.7.1
Language: PHP 8.0


My constant called NEW should not be a problem.
Is it possible to ignore this error globally without disabling the rule ?

Hello @adrien38 ,

Welcome to the community.
Thank you very much for your contribution. Indeed, the class constant should not be affected by this rule.
I have created the ticket SONARPHP-1142 to fix this false positive.


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