From: Alangi Derick Date: Mon, 3 Dec 2018 14:58:57 +0000 (+0100) Subject: parser: Fix PHPDoc annotations in parser module X-Git-Tag: 1.34.0-rc.0~3309 X-Git-Url: http://git.cyclocoop.org//%27%40script%40/%27?a=commitdiff_plain;h=19adaa6a4b90278a5067fa64454182c67e757646;p=lhc%2Fweb%2Fwiklou.git parser: Fix PHPDoc annotations in parser module Change-Id: I09680d72516f943051e86655b5fddf9ff2988e4e --- 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(); }