build: Upgrade mediawiki-codesniffer to v28.0.0

Change-Id: I61896470e0dc9cffd3e8fff8b45e2231ef4265f3
This commit is contained in:
James D. Forrester 2019-10-09 16:24:09 -07:00
parent db80002484
commit ed181c2db0
3 changed files with 4 additions and 3 deletions

View file

@ -4,6 +4,7 @@
<exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationProtected" />
<exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationPublic" />
<exclude name="MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment" />
<exclude name="PSR12.Properties.ConstantVisibility.NotFound" />
</rule>
<file>.</file>
<arg name="extensions" value="php,php5,inc" />

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

@ -11,7 +11,7 @@ class GadgetHooksTest extends MediaWikiIntegrationTestCase {
*/
protected $user;
public function setUp() {
public function setUp() : void {
global $wgGroupPermissions;
parent::setUp();
@ -22,7 +22,7 @@ class GadgetHooksTest extends MediaWikiIntegrationTestCase {
$this->user = $this->getTestUser( [ 'unittesters' ] )->getUser();
}
public function tearDown() {
public function tearDown() : void {
GadgetRepo::setSingleton();
parent::tearDown();
}