PHP private constant's are reported as unused when referenced in other consts only

We use a fresh install of SonarQube 8.4.1 with latest docker-based scanner on our php codebase.

With private constants that are only used as constant array key/value, the constants are reported as unused. I.e. this rule triggers for the two private constants below in the below snippet.

https://rules.sonarsource.com/php/RSPEC-1068

final class Vendor
{
    public const PURPOSES = [self::PURPOSE_FUNCTIONAL, self::PURPOSE_ANALYTICAL];

    private const PURPOSE_ANALYTICAL = 'analytical';
    private const PURPOSE_FUNCTIONAL = 'functional';

// more code that doesn't use those constants
}

We have similar pieces of code, with variants that have constant-based array-keys or where the array is protected rather than public.

Hello @Arjenm and welcome to the community,

Thanks for reaching us. We are looking into it and will get back to you soon.

Best, Nils