Skip to content

Commit

Permalink
build: Updating mediawiki/mediawiki-codesniffer to 28.0.0
Browse files Browse the repository at this point in the history
The following sniffs are failing and were disabled:
* PSR12.Properties.ConstantVisibility.NotFound

Change-Id: If22e1d6f7fa1b93320273e827b656362fd061c14
  • Loading branch information
libraryupgrader committed Oct 21, 2019
1 parent e461549 commit d7df0f9
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions .phpcs.xml
Expand Up @@ -15,6 +15,7 @@
<exclude name="MediaWiki.Usage.DeprecatedGlobalVariables.Deprecated$wgTitle" />
<exclude name="MediaWiki.Usage.ForbiddenFunctions.passthru" />
<exclude name="MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment" />
<exclude name="PSR12.Properties.ConstantVisibility.NotFound" />
</rule>
<file>.</file>
<arg name="extensions" value="php,php5,inc"/>
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -35,7 +35,7 @@
"justinrainbow/json-schema": ">=1.0",
"jakub-onderka/php-console-highlighter": "0.3.2",
"mediawiki/minus-x": "0.3.1",
"mediawiki/mediawiki-codesniffer": "26.0.0"
"mediawiki/mediawiki-codesniffer": "28.0.0"
},
"scripts": {
"test": [
Expand Down
4 changes: 2 additions & 2 deletions src/LingoParser.php
Expand Up @@ -224,7 +224,7 @@ protected function realParse( &$parser ) {

// TODO: Remove call to \MediaWiki\suppressWarnings() for MW 1.34+.
// \Wikimedia\AtEase\AtEase::suppressWarnings() is available from MW 1.34.
if (method_exists( AtEase::class, 'suppressWarnings' ) ) {
if ( method_exists( AtEase::class, 'suppressWarnings' ) ) {
\Wikimedia\AtEase\AtEase::suppressWarnings();
} else {
\MediaWiki\suppressWarnings();
Expand All @@ -235,7 +235,7 @@ protected function realParse( &$parser ) {

// TODO: Remove call to \MediaWiki\restoreWarnings() for MW 1.34+.
// \Wikimedia\AtEase\AtEase::restoreWarnings() is available from MW 1.34.
if (method_exists( AtEase::class, 'suppressWarnings' ) ) {
if ( method_exists( AtEase::class, 'suppressWarnings' ) ) {
\Wikimedia\AtEase\AtEase::restoreWarnings();
} else {
\MediaWiki\restoreWarnings();
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/Integration/ArticleAnnotationTest.php
Expand Up @@ -53,7 +53,7 @@ public function setup() {
$GLOBALS[ 'wgexLingoDisplayOnce' ] = false;
}

public function tearDown() {
public function tearDown() : void {
// reset LingoParser singleton
$lingoParser = LingoParser::getInstance();
$reflection = new ReflectionClass( $lingoParser );
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/Unit/ElementTest.php
Expand Up @@ -44,7 +44,7 @@ class ElementTest extends \PHPUnit\Framework\TestCase {
protected $element;
protected $doc;

protected function setUp() {
protected function setUp() : void {
$this->doc = new \DOMDocument();
}

Expand Down

0 comments on commit d7df0f9

Please sign in to comment.