mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ParserFunctions
synced 2024-11-24 00:06:21 +00:00
build: Updating composer dependencies
* 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
This commit is contained in:
parent
e2d601f005
commit
7df8411050
|
@ -3,7 +3,6 @@
|
||||||
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
|
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
|
||||||
<exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationPublic" />
|
<exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationPublic" />
|
||||||
<exclude name="MediaWiki.Commenting.PropertyDocumentation.MissingDocumentationPrivate" />
|
<exclude name="MediaWiki.Commenting.PropertyDocumentation.MissingDocumentationPrivate" />
|
||||||
<exclude name="MediaWiki.Commenting.PropertyDocumentation.MissingDocumentationPublic" />
|
|
||||||
<exclude name="MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment" />
|
<exclude name="MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment" />
|
||||||
</rule>
|
</rule>
|
||||||
<file>.</file>
|
<file>.</file>
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
{
|
{
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"mediawiki/mediawiki-codesniffer": "35.0.0",
|
"mediawiki/mediawiki-codesniffer": "36.0.0",
|
||||||
"mediawiki/mediawiki-phan-config": "0.10.6",
|
"mediawiki/mediawiki-phan-config": "0.10.6",
|
||||||
"mediawiki/minus-x": "1.1.1",
|
"mediawiki/minus-x": "1.1.1",
|
||||||
"php-parallel-lint/php-console-highlighter": "0.5.0",
|
"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": {
|
"scripts": {
|
||||||
"fix": [
|
"fix": [
|
||||||
|
|
|
@ -416,7 +416,7 @@ class ExprParser {
|
||||||
$right = array_pop( $stack );
|
$right = array_pop( $stack );
|
||||||
$left = array_pop( $stack );
|
$left = array_pop( $stack );
|
||||||
$stack[] = $left * $right;
|
$stack[] = $left * $right;
|
||||||
break;
|
break;
|
||||||
case self::EXPR_DIVIDE:
|
case self::EXPR_DIVIDE:
|
||||||
if ( count( $stack ) < 2 ) {
|
if ( count( $stack ) < 2 ) {
|
||||||
throw new ExprError( 'missing_operand', self::NAMES[$op] );
|
throw new ExprError( 'missing_operand', self::NAMES[$op] );
|
||||||
|
|
|
@ -39,7 +39,7 @@ class ParserFunctions {
|
||||||
static $done = false;
|
static $done = false;
|
||||||
if ( !$done ) {
|
if ( !$done ) {
|
||||||
global $wgHooks;
|
global $wgHooks;
|
||||||
$wgHooks['ParserClearState'][] = function () {
|
$wgHooks['ParserClearState'][] = static function () {
|
||||||
self::$mTimeChars = 0;
|
self::$mTimeChars = 0;
|
||||||
};
|
};
|
||||||
$done = true;
|
$done = true;
|
||||||
|
|
Loading…
Reference in a new issue