From b2e2a7b1a24ef20744267eadc1823b4ea823e13b Mon Sep 17 00:00:00 2001 From: Umherirrender Date: Mon, 4 Nov 2019 19:41:47 +0100 Subject: [PATCH] build: Updating mediawiki/mediawiki-phan-config to 0.8.0 Bug: T235049 Change-Id: I202d0b41c217498b0697eb9237c9f18725b7224d --- composer.json | 2 +- src/MathMathML.php | 4 ++++ src/MathRestbaseInterface.php | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index f10026ad8..b45b9c57f 100644 --- a/composer.json +++ b/composer.json @@ -4,7 +4,7 @@ "mediawiki/mediawiki-codesniffer": "28.0.0", "jakub-onderka/php-console-highlighter": "0.3.2", "mediawiki/minus-x": "0.3.1", - "mediawiki/mediawiki-phan-config": "0.6.1" + "mediawiki/mediawiki-phan-config": "0.8.0" }, "scripts": { "test": [ diff --git a/src/MathMathML.php b/src/MathMathML.php index 408623ac2..840eb3535 100644 --- a/src/MathMathML.php +++ b/src/MathMathML.php @@ -30,6 +30,7 @@ class MathMathML extends MathRenderer { /** @var string|bool */ private $pngPath = false; + /** @var string|null */ private $mathoidStyle; public function __construct( $tex = '', $params = [] ) { @@ -66,6 +67,9 @@ class MathMathML extends MathRenderer { } } + /** + * @param array[] $tags + */ public static function batchEvaluate( array $tags ) { $rbis = []; foreach ( $tags as $key => $tag ) { diff --git a/src/MathRestbaseInterface.php b/src/MathRestbaseInterface.php index 8d190fa32..c11d69c16 100644 --- a/src/MathRestbaseInterface.php +++ b/src/MathRestbaseInterface.php @@ -405,7 +405,7 @@ class MathRestbaseInterface { } /** - * @return mixed + * @return string */ public function getMathoidStyle() { return $this->mathoidStyle;