build: Upgrade mediawiki-codesniffer to v28.0.0

Change-Id: Ide491f1971a4fe323f82eb5812a42fce990ddbd5
This commit is contained in:
James D. Forrester 2019-10-11 10:38:12 -07:00
parent c5c9a60d15
commit e4d9f1ea3e
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

@ -6,7 +6,7 @@
"description": "MediaWiki extension to notify users if someone tries to login to their account",
"require-dev": {
"jakub-onderka/php-parallel-lint": "1.0.0",
"mediawiki/mediawiki-codesniffer": "26.0.0",
"mediawiki/mediawiki-codesniffer": "28.0.0",
"jakub-onderka/php-console-highlighter": "0.3.2",
"mediawiki/minus-x": "0.3.1",
"mediawiki/mediawiki-phan-config": "0.6.1"

View file

@ -1,7 +1,7 @@
<?php
use LoginNotify\LoginNotify;
use \Psr\Log\NullLogger;
use Psr\Log\NullLogger;
use Wikimedia\TestingAccessWrapper;
/**
@ -36,7 +36,7 @@ class LoginNotifyTest extends MediaWikiTestCase {
$this->inst->setLogger( new NullLogger );
}
public function setUp() {
public function setUp() : void {
parent::setUp();
$this->setUpLoginNotify();
}