From: Derick Alangi Date: Mon, 25 Mar 2019 14:16:23 +0000 (+0100) Subject: parser: Fix return type for methods and match phpdoc comments X-Git-Tag: 1.34.0-rc.0~2020^2 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=commitdiff_plain;h=fb46f4fc3f6c9617420261dadbb4762868d2d166;p=lhc%2Fweb%2Fwiklou.git parser: Fix return type for methods and match phpdoc comments Change-Id: I867d7eb6fc56cc52eb8e129977b7a62607a11268 --- diff --git a/includes/parser/Preprocessor_Hash.php b/includes/parser/Preprocessor_Hash.php index dfce0a022b..a845047398 100644 --- a/includes/parser/Preprocessor_Hash.php +++ b/includes/parser/Preprocessor_Hash.php @@ -1760,7 +1760,8 @@ class PPNode_Hash_Tree implements PPNode { * * @param array $store * @param int $index - * @return PPNode_Hash_Tree|PPNode_Hash_Attr|PPNode_Hash_Text + * @return PPNode_Hash_Tree|PPNode_Hash_Attr|PPNode_Hash_Text|false + * @throws MWException */ public static function factory( array $store, $index ) { if ( !isset( $store[$index] ) ) { @@ -1784,6 +1785,7 @@ class PPNode_Hash_Tree implements PPNode { /** * Convert a node to XML, for debugging + * @return string */ public function __toString() { $inner = '';