build: Upgrade mediawiki-codesniffer to v28.0.0

Change-Id: Ic742e7cde506b7d0c1865453cc8895faefe10e90
This commit is contained in:
James D. Forrester 2019-10-11 11:05:53 -07:00
parent 0665baacc3
commit a9518ea914
3 changed files with 7 additions and 4 deletions

View file

@ -1,6 +1,9 @@
<?xml version="1.0"?>
<ruleset>
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki" />
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
<exclude name="PSR12.Properties.ConstantVisibility.NotFound" />
</rule>
<file>.</file>
<arg name="extensions" value="php,php5,inc" />
<arg name="encoding" value="UTF-8" />

View file

@ -2,7 +2,7 @@
"require-dev": {
"jakub-onderka/php-parallel-lint": "1.0.0",
"jakub-onderka/php-console-highlighter": "0.3.2",
"mediawiki/mediawiki-codesniffer": "26.0.0",
"mediawiki/mediawiki-codesniffer": "28.0.0",
"mediawiki/minus-x": "0.3.1",
"mediawiki/mediawiki-phan-config": "0.6.1"
},

View file

@ -21,13 +21,13 @@ use Wikimedia\TestingAccessWrapper;
*/
class LinksUpdateHookHandlerTest extends MediaWikiTestCase {
public function tearDown() {
public function tearDown() : void {
// remove mock added in testGetMetadata()
RepoGroup::destroySingleton();
parent::tearDown();
}
public function setUp() {
public function setUp() : void {
parent::setUp();
// Force LinksUpdateHookHandler::getPageImageCanditates to look at all