PhpStorm: removed unused element warning if specific attributes are present
I’m currently working on a Symfony-based CMS which uses attributes to declare callbacks. Because of that the function is not called directly anywhere in the code. This causes PhpStorm to show a “Unused element” warning despite the function is used.