Report use of deprecated phpdoc annotations
PHPUnit 12.x removed support for annotations, ~~therefore we can prevent unneccessary phpdoc parsing, when PHPUnit 12+ is detected~~
see https://phpunit.de/announcements/phpunit-11.html
Metadata
PHPUnit 10 introduced support for PHP 8 attributes to add metadata to test classes and test methods. Previously, annotations in special PHP comments called "docblocks" or "doc-comments" were the only way to add metadata to units of code.
In PHPUnit 11, the annotations that can be used in special PHP comments to add metadata to test classes and test methods are deprecated. Support for these annotations will be removed in PHPUnit 12.
see also discussion at https://github.com/phpstan/phpstan-phpunit/pull/239#pullrequestreview-3334380118