@@ -388,7 +388,7 @@ discard block |
||
| 388 | 388 | /** |
| 389 | 389 | * Show an error message in a box. Parameters are like wfMessage(), or |
| 390 | 390 | * alternatively, pass a Message object in. |
| 391 | - * @param string|Message $msg |
|
| 391 | + * @param string $msg |
|
| 392 | 392 | */ |
| 393 | 393 | public function showError( $msg /*...*/ ) { |
| 394 | 394 | if ( !( $msg instanceof Message ) ) { |
@@ -486,7 +486,7 @@ discard block |
||
| 486 | 486 | * Set a session variable. |
| 487 | 487 | * |
| 488 | 488 | * @param string $name Key for the variable |
| 489 | - * @param mixed $value |
|
| 489 | + * @param boolean $value |
|
| 490 | 490 | */ |
| 491 | 491 | public function setSession( $name, $value ) { |
| 492 | 492 | $this->session[$name] = $value; |
@@ -1164,7 +1164,7 @@ discard block |
||
| 1164 | 1164 | * "in the base of your install" |
| 1165 | 1165 | * |
| 1166 | 1166 | * @since 1.27 |
| 1167 | - * @return string|bool |
|
| 1167 | + * @return boolean |
|
| 1168 | 1168 | */ |
| 1169 | 1169 | public function getLocalSettingsLocation() { |
| 1170 | 1170 | return false; |
@@ -255,7 +255,7 @@ discard block |
||
| 255 | 255 | * Return the list of revision fields that should be selected to create |
| 256 | 256 | * a new page. |
| 257 | 257 | * |
| 258 | - * @return array |
|
| 258 | + * @return string[] |
|
| 259 | 259 | */ |
| 260 | 260 | public static function selectFields() { |
| 261 | 261 | global $wgContentHandlerUseDB, $wgPageLanguageUseDB; |
@@ -516,7 +516,7 @@ discard block |
||
| 516 | 516 | |
| 517 | 517 | /** |
| 518 | 518 | * Get the page_links_updated field |
| 519 | - * @return string|null Containing GMT timestamp |
|
| 519 | + * @return string Containing GMT timestamp |
|
| 520 | 520 | */ |
| 521 | 521 | public function getLinksTimestamp() { |
| 522 | 522 | if ( !$this->mDataLoaded ) { |
@@ -1044,7 +1044,7 @@ discard block |
||
| 1044 | 1044 | * @param null|int $oldid Revision ID to get the text from, passing null or 0 will |
| 1045 | 1045 | * get the current revision (default value) |
| 1046 | 1046 | * |
| 1047 | - * @return ParserOutput|bool ParserOutput or false if the revision was not found |
|
| 1047 | + * @return ParserOutput ParserOutput or false if the revision was not found |
|
| 1048 | 1048 | */ |
| 1049 | 1049 | public function getParserOutput( ParserOptions $parserOptions, $oldid = null ) { |
| 1050 | 1050 | |
@@ -1145,7 +1145,7 @@ discard block |
||
| 1145 | 1145 | * @param IDatabase $dbw |
| 1146 | 1146 | * @param int|null $pageId Custom page ID that will be used for the insert statement |
| 1147 | 1147 | * |
| 1148 | - * @return bool|int The newly created page_id key; false if the title already existed |
|
| 1148 | + * @return integer The newly created page_id key; false if the title already existed |
|
| 1149 | 1149 | */ |
| 1150 | 1150 | public function insertOn( $dbw, $pageId = null ) { |
| 1151 | 1151 | $pageIdForInsert = $pageId ?: $dbw->nextSequenceValue( 'page_page_id_seq' ); |
@@ -1490,7 +1490,7 @@ discard block |
||
| 1490 | 1490 | * error will be returned. These two conditions are also possible with |
| 1491 | 1491 | * auto-detection due to MediaWiki's performance-optimised locking strategy. |
| 1492 | 1492 | * |
| 1493 | - * @param bool|int $baseRevId The revision ID this edit was based off, if any. |
|
| 1493 | + * @param boolean $baseRevId The revision ID this edit was based off, if any. |
|
| 1494 | 1494 | * This is not the parent revision ID, rather the revision ID for older |
| 1495 | 1495 | * content used as the source for a rollback, for example. |
| 1496 | 1496 | * @param User $user The user doing the edit |
@@ -3339,7 +3339,7 @@ discard block |
||
| 3339 | 3339 | * Returns a list of categories this page is a member of. |
| 3340 | 3340 | * Results will include hidden categories |
| 3341 | 3341 | * |
| 3342 | - * @return TitleArray |
|
| 3342 | + * @return TitleArrayFromResult|null |
|
| 3343 | 3343 | */ |
| 3344 | 3344 | public function getCategories() { |
| 3345 | 3345 | $id = $this->getId(); |
@@ -3414,7 +3414,7 @@ discard block |
||
| 3414 | 3414 | * Auto-generates a deletion reason |
| 3415 | 3415 | * |
| 3416 | 3416 | * @param bool &$hasHistory Whether the page has a history |
| 3417 | - * @return string|bool String containing deletion reason or empty string, or boolean false |
|
| 3417 | + * @return false|string String containing deletion reason or empty string, or boolean false |
|
| 3418 | 3418 | * if no revision occurred |
| 3419 | 3419 | */ |
| 3420 | 3420 | public function getAutoDeleteReason( &$hasHistory ) { |