From 7df8411050ceeaa708562fcf611478d7eb2f7051 Mon Sep 17 00:00:00 2001 From: libraryupgrader Date: Mon, 3 May 2021 09:10:46 +0000 Subject: [PATCH] build: Updating composer dependencies MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * mediawiki/mediawiki-codesniffer: 35.0.0 → 36.0.0 The following sniffs now pass and were enabled: * MediaWiki.Commenting.PropertyDocumentation.MissingDocumentationPublic * php-parallel-lint/php-parallel-lint: 1.2.0 → 1.3.0 Change-Id: Ifaca144ccfd753ea00d1dbba0d12941b0050e2a4 --- .phpcs.xml | 1 - composer.json | 4 ++-- includes/ExprParser.php | 2 +- includes/ParserFunctions.php | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.phpcs.xml b/.phpcs.xml index ce1451e1..5065783c 100644 --- a/.phpcs.xml +++ b/.phpcs.xml @@ -3,7 +3,6 @@ - . diff --git a/composer.json b/composer.json index c6777f21..044edbb3 100644 --- a/composer.json +++ b/composer.json @@ -1,10 +1,10 @@ { "require-dev": { - "mediawiki/mediawiki-codesniffer": "35.0.0", + "mediawiki/mediawiki-codesniffer": "36.0.0", "mediawiki/mediawiki-phan-config": "0.10.6", "mediawiki/minus-x": "1.1.1", "php-parallel-lint/php-console-highlighter": "0.5.0", - "php-parallel-lint/php-parallel-lint": "1.2.0" + "php-parallel-lint/php-parallel-lint": "1.3.0" }, "scripts": { "fix": [ diff --git a/includes/ExprParser.php b/includes/ExprParser.php index 23fae417..8d978af5 100644 --- a/includes/ExprParser.php +++ b/includes/ExprParser.php @@ -416,7 +416,7 @@ class ExprParser { $right = array_pop( $stack ); $left = array_pop( $stack ); $stack[] = $left * $right; - break; + break; case self::EXPR_DIVIDE: if ( count( $stack ) < 2 ) { throw new ExprError( 'missing_operand', self::NAMES[$op] ); diff --git a/includes/ParserFunctions.php b/includes/ParserFunctions.php index 2ec5eea6..5d2a0194 100644 --- a/includes/ParserFunctions.php +++ b/includes/ParserFunctions.php @@ -39,7 +39,7 @@ class ParserFunctions { static $done = false; if ( !$done ) { global $wgHooks; - $wgHooks['ParserClearState'][] = function () { + $wgHooks['ParserClearState'][] = static function () { self::$mTimeChars = 0; }; $done = true;