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;