From ccc6a0cb480550f38562f97324ae3d649caba80d Mon Sep 17 00:00:00 2001 From: libraryupgrader Date: Sun, 14 Jul 2019 13:30:32 +0000 Subject: [PATCH] build: Updating dependencies MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit composer: * mediawiki/mediawiki-codesniffer: 24.0.0 → 26.0.0 npm: * set-value: 2.0.0 → 2.0.1 * https://npmjs.com/advisories/1012 * CVE-2019-10747 * union-value: 1.0.0 → 1.0.1 * https://npmjs.com/advisories/1012 * CVE-2019-10747 * mixin-deep: 1.3.1 → 1.3.2 * https://npmjs.com/advisories/1013 * CVE-2019-10746 Change-Id: Id7c540a37118f3a89917f467dcb715f504b843ef --- MathLaTeXML.php | 1 + composer.json | 2 +- package-lock.json | 43 +++++--------------- src/MathInputCheckRestbase.php | 1 + src/SpecialMathStatus.php | 1 + tests/phpunit/MathInputCheckRestbaseTest.php | 3 ++ tests/phpunit/MathRestbaseInterfaceTest.php | 1 + 7 files changed, 18 insertions(+), 34 deletions(-) diff --git a/MathLaTeXML.php b/MathLaTeXML.php index a08f65f..9c1772b 100644 --- a/MathLaTeXML.php +++ b/MathLaTeXML.php @@ -43,6 +43,7 @@ class MathLaTeXML extends MathMathML { return $cgi_string; } + /** * Gets the settings for the LaTeXML daemon. * @return string diff --git a/composer.json b/composer.json index 8c617fa..f2060aa 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "require-dev": { "jakub-onderka/php-parallel-lint": "1.0.0", - "mediawiki/mediawiki-codesniffer": "24.0.0", + "mediawiki/mediawiki-codesniffer": "26.0.0", "jakub-onderka/php-console-highlighter": "0.3.2", "mediawiki/minus-x": "0.3.1", "mediawiki/mediawiki-phan-config": "0.6.1" diff --git a/package-lock.json b/package-lock.json index 3e52cb0..55215ab 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3357,9 +3357,9 @@ } }, "mixin-deep": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.1.tgz", - "integrity": "sha512-8ZItLHeEgaqEvd5lYBXfm4EZSFCX29Jb9K+lAHhDKzReKBQKj3R+7NOF6tjqYi9t4oI8VUfaWITJQm86wnXGNQ==", + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.2.tgz", + "integrity": "sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA==", "dev": true, "requires": { "for-in": "^1.0.2", @@ -4441,9 +4441,9 @@ "dev": true }, "set-value": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/set-value/-/set-value-2.0.0.tgz", - "integrity": "sha512-hw0yxk9GT/Hr5yJEYnHNKYXkIA8mVJgd9ditYZCe16ZczcaELYYcfvaXesNACk2O8O0nTiPQcQhGUQj8JLzeeg==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/set-value/-/set-value-2.0.1.tgz", + "integrity": "sha512-JxHc1weCN68wRY0fhCoXpyK55m/XPHafOmK4UWD7m2CI14GMcFypt4w/0+NV5f/ZMby2F6S2wwA7fgynh9gWSw==", "dev": true, "requires": { "extend-shallow": "^2.0.1", @@ -5438,38 +5438,15 @@ } }, "union-value": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/union-value/-/union-value-1.0.0.tgz", - "integrity": "sha1-XHHDTLW61dzr4+oM0IIHulqhrqQ=", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/union-value/-/union-value-1.0.1.tgz", + "integrity": "sha512-tJfXmxMeWYnczCVs7XAEvIV7ieppALdyepWMkHkwciRpZraG/xwT+s2JN8+pr1+8jCRf80FFzvr+MpQeeoF4Xg==", "dev": true, "requires": { "arr-union": "^3.1.0", "get-value": "^2.0.6", "is-extendable": "^0.1.1", - "set-value": "^0.4.3" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - }, - "set-value": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/set-value/-/set-value-0.4.3.tgz", - "integrity": "sha1-fbCPnT0i3H945Trzw79GZuzfzPE=", - "dev": true, - "requires": { - "extend-shallow": "^2.0.1", - "is-extendable": "^0.1.1", - "is-plain-object": "^2.0.1", - "to-object-path": "^0.3.0" - } - } + "set-value": "^2.0.1" } }, "uniq": { diff --git a/src/MathInputCheckRestbase.php b/src/MathInputCheckRestbase.php index a8f5872..0a06363 100644 --- a/src/MathInputCheckRestbase.php +++ b/src/MathInputCheckRestbase.php @@ -57,6 +57,7 @@ class MathInputCheckRestbase extends MathInputCheck { } return $errorRenderer->getError( 'math_unknown_error' ); } + /** * @return bool */ diff --git a/src/SpecialMathStatus.php b/src/SpecialMathStatus.php index 2163a4c..a218066 100644 --- a/src/SpecialMathStatus.php +++ b/src/SpecialMathStatus.php @@ -187,6 +187,7 @@ class SpecialMathStatus extends SpecialPage { 'SyntaxHighlight is not installed.' ); } } + protected function getGroupName() { return 'other'; } diff --git a/tests/phpunit/MathInputCheckRestbaseTest.php b/tests/phpunit/MathInputCheckRestbaseTest.php index 9693bad..234ae22 100644 --- a/tests/phpunit/MathInputCheckRestbaseTest.php +++ b/tests/phpunit/MathInputCheckRestbaseTest.php @@ -11,6 +11,7 @@ class MathInputCheckRestbaseTest extends MediaWikiTestCase { protected $BadObject; /** @var MathInputCheckRestbase */ protected $GoodObject; + public static function setUpBeforeClass() { $rbi = new MathRestbaseInterface(); self::$hasRestbase = $rbi->checkBackend( true ); @@ -43,6 +44,7 @@ class MathInputCheckRestbaseTest extends MediaWikiTestCase { )->inContentLanguage()->escaped(); $this->assertContains( $expectedMessage, $this->BadObject->getError() ); } + /** * @covers MathInputCheckRestbase::getError */ @@ -52,6 +54,7 @@ class MathInputCheckRestbaseTest extends MediaWikiTestCase { $expectedMessage = wfMessage( 'math_syntax_error' )->inContentLanguage()->escaped(); $this->assertContains( $expectedMessage, $o->getError() ); } + /** * @covers MathInputCheckRestbase::getError */ diff --git a/tests/phpunit/MathRestbaseInterfaceTest.php b/tests/phpunit/MathRestbaseInterfaceTest.php index 5703e5b..2d1d869 100644 --- a/tests/phpunit/MathRestbaseInterfaceTest.php +++ b/tests/phpunit/MathRestbaseInterfaceTest.php @@ -65,6 +65,7 @@ class MathRestbaseInterfaceTest extends MediaWikiTestCase { $this->assertContains( '', $rbi->getMathML() ); $this->assertContains( 'H', $rbi->getMathML() ); } + /** * @expectedException MWException * @expectedExceptionMessage TeX input is invalid.