From 25874698344e33f6512d817b33345876af5fb072 Mon Sep 17 00:00:00 2001 From: libraryupgrader Date: Sat, 26 May 2018 04:26:21 +0000 Subject: [PATCH] build: Updating mediawiki/mediawiki-codesniffer to 20.0.0 Change-Id: I4385a05df9b40d4da19f280bd211e8c261d22c41 --- composer.json | 2 +- src/MathHooks.php | 2 +- src/MathInputCheckRestbase.php | 4 ++-- src/MathMathMLCli.php | 2 +- src/MathRenderer.php | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/composer.json b/composer.json index 2c6657d7d..a9c83e792 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "require-dev": { "jakub-onderka/php-parallel-lint": "1.0.0", - "mediawiki/mediawiki-codesniffer": "18.0.0", + "mediawiki/mediawiki-codesniffer": "20.0.0", "jakub-onderka/php-console-highlighter": "0.3.2", "mediawiki/minus-x": "0.3.1" }, diff --git a/src/MathHooks.php b/src/MathHooks.php index 575db9a00..f13390901 100644 --- a/src/MathHooks.php +++ b/src/MathHooks.php @@ -312,7 +312,7 @@ class MathHooks { /** * LoadExtensionSchemaUpdates handler; set up math table on install/upgrade. * - * @param DatabaseUpdater $updater + * @param DatabaseUpdater|null $updater * @throws Exception * @return bool */ diff --git a/src/MathInputCheckRestbase.php b/src/MathInputCheckRestbase.php index 2a95352cd..a8f5872c7 100644 --- a/src/MathInputCheckRestbase.php +++ b/src/MathInputCheckRestbase.php @@ -16,7 +16,7 @@ class MathInputCheckRestbase extends MathInputCheck { * (performs no checking) * @param string $tex the TeX input string to be checked * @param string $type - * @param MathRestbaseInterface &$ref + * @param MathRestbaseInterface|null &$ref */ public function __construct( $tex = '', $type = 'tex', &$ref = null ) { parent::__construct( $tex ); @@ -31,7 +31,7 @@ class MathInputCheckRestbase extends MathInputCheck { /** * @see https://phabricator.wikimedia.org/T119300 * @param stdClass $e - * @param MathRenderer $errorRenderer + * @param MathRenderer|null $errorRenderer * @return string */ public function errorObjectToHtml( stdClass $e, $errorRenderer = null ) { diff --git a/src/MathMathMLCli.php b/src/MathMathMLCli.php index ee35ebadd..545ae71b0 100644 --- a/src/MathMathMLCli.php +++ b/src/MathMathMLCli.php @@ -111,7 +111,7 @@ class MathMathMLCli extends MathMathML { /** * @param mixed $req request - * @param int &$exitCode exit code + * @param int|null &$exitCode exit code * @return mixed * @throws MWException */ diff --git a/src/MathRenderer.php b/src/MathRenderer.php index 179c684b7..5da1f02fb 100644 --- a/src/MathRenderer.php +++ b/src/MathRenderer.php @@ -329,7 +329,7 @@ abstract class MathRenderer { * to the database even if they are empty. * * This function can be seen as protected function. - * @param \Wikimedia\Rdbms\IDatabase $dbw + * @param \Wikimedia\Rdbms\IDatabase|null $dbw */ public function writeToDatabase( $dbw = null ) { # Now save it back to the DB: