Page MenuHomePhabricator

MediaWiki.Commenting.MissingCovers.MissingCovers does not support PHPUnit 10.x attributes
Open, Needs TriagePublic

Description

PHPUnit 10.x moves from doc comment annotations to PHP 8 attributes, so the MediaWiki.Commenting.MissingCovers.MissingCovers sniff will need to be updated to support that.

Event Timeline

Change #1023146 had a related patch set uploaded (by DannyS712; author: DannyS712):

[mediawiki/tools/codesniffer@master] MissingCoversSniff: allow the PHPUnit coverage attributes

https://gerrit.wikimedia.org/r/1023146

Just want to mention that you might want to drop this rule alltogether, since modern versions of PHPUnit are configured by default to warn the user if a test has no coverage information.
In our WMDE Fundraising coding style which is based on the MediaWiki one, we have already dropped this rule.