parser: Fix PHPDoc annotations in parser module
authorAlangi Derick <alangiderick@gmail.com>
Mon, 3 Dec 2018 14:58:57 +0000 (15:58 +0100)
committerUmherirrender <umherirrender_de.wp@web.de>
Sat, 8 Dec 2018 13:07:10 +0000 (13:07 +0000)
Change-Id: I09680d72516f943051e86655b5fddf9ff2988e4e

includes/parser/BlockLevelPass.php
includes/parser/Parser.php
includes/parser/ParserOptions.php

index 0553db9..bb448b2 100644 (file)
@@ -53,7 +53,8 @@ class BlockLevelPass {
        }
 
        /**
-        * Private constructor
+        * @param string $text
+        * @param bool $lineStart
         */
        private function __construct( $text, $lineStart ) {
                $this->text = $text;
index 81e23ad..d78ccff 100644 (file)
@@ -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
index 032d481..8407992 100644 (file)
@@ -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();
        }