PHP #[SuppressWarnings()] attribute not working

According to this documentation page, a PHP attribute like this should work `#[SuppressWarnings(“php:S2077”)]`, but it doesn’t. Is it a bug or are we doing something wrong?

Hi,

Can you verify that you’re using SonarQube Cloud?

 
Thx,
Ann

No, we’re using the community edition self hosted.

The issue is that the parser is not accepting ‘ but only “. But we use ‘ everywhere, see the screenshot.

It would be nice if this could be fixed.

Hi,

What version of Community Build are you using? I need to verify that you’re seeing this in a current version.

 
Thx,
Ann