rectorphp / rector-phpunit

Rector upgrade rules for PHPUnit
http://getrector.com
MIT License
61 stars 46 forks source link

CodeCoverageIgnore attribute is deprecated and should not be used #303

Closed martinssipenko closed 6 months ago

martinssipenko commented 6 months ago

As described in https://github.com/sebastianbergmann/phpunit/issues/5235 and https://github.com/sebastianbergmann/phpunit/issues/5513 the CodeCoverageIgnore attribute was a mistake and is now deprecated, therefore Rector should not try to replace annotation with the attribute.

https://github.com/rectorphp/rector-phpunit/blob/2095737213ec328db197774a5d073e962c14174c/config/sets/annotations-to-attributes.php#L91

samsonasik commented 6 months ago

@martinssipenko Could you create a PR to fix it? Thank you.

martinssipenko commented 6 months ago

@samsonasik created https://github.com/rectorphp/rector-phpunit/pull/304