PhpUnitAttributesFixer
- ability to keep annotations
#7956
Labels
kind/enhancement
kind/feature request
topic/phpdoc
PHPDoc tags, Doctrine Annotations etc.
topic/phpunit
Fixers related to PHPUnit
It would be great to have an option to add the attributes without removing the annotation (which also requires checking if the attribute is already there to avoid "fixing" it multiple times). When you need to support both PHPUnit 11 (to support the latest PHPUnit version) and PHPUnit 9.6 (to support older PHP versions), the way to go is to define both the attributes (for PHPUnit 10+) and the annotation (used by PHPUnit 9 and ignored in 10+ when the attributes are present).
Originally posted by @stof in #7831 (comment)
The text was updated successfully, but these errors were encountered: