From 19adaa6a4b90278a5067fa64454182c67e757646 Mon Sep 17 00:00:00 2001 From: Alangi Derick Date: Mon, 3 Dec 2018 15:58:57 +0100 Subject: [PATCH] parser: Fix PHPDoc annotations in parser module Change-Id: I09680d72516f943051e86655b5fddf9ff2988e4e --- includes/parser/BlockLevelPass.php | 3 ++- includes/parser/Parser.php | 1 + includes/parser/ParserOptions.php | 4 +++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/includes/parser/BlockLevelPass.php b/includes/parser/BlockLevelPass.php index 0553db9ea6..bb448b27a8 100644 --- a/includes/parser/BlockLevelPass.php +++ b/includes/parser/BlockLevelPass.php @@ -53,7 +53,8 @@ class BlockLevelPass { } /** - * Private constructor + * @param string $text + * @param bool $lineStart */ private function __construct( $text, $lineStart ) { $this->text = $text; diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index 81e23add64..d78ccff556 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -5470,6 +5470,7 @@ class Parser { * Adds an entry to appropriate link tables. * * @since 1.32 + * @param string $value * @return array of `[ type, target ]`, where: * - `type` is one of: * - `null`: Given value is not a valid link target, use default diff --git a/includes/parser/ParserOptions.php b/includes/parser/ParserOptions.php index 032d481faa..8407992ba1 100644 --- a/includes/parser/ParserOptions.php +++ b/includes/parser/ParserOptions.php @@ -650,8 +650,10 @@ class ParserOptions { /** * Lazy initializer for dateFormat + * @param ParserOptions $popt + * @return string */ - private static function initDateFormat( $popt ) { + private static function initDateFormat( ParserOptions $popt ) { return $popt->mUser->getDatePreference(); } -- 2.20.1