@@ -296,7 +296,7 @@ discard block |
||
296 | 296 | * |
297 | 297 | * Omit noarticletext if sharedupload; text will be fetched from the |
298 | 298 | * shared upload server if possible. |
299 | - * @return string |
|
299 | + * @return null|Content |
|
300 | 300 | */ |
301 | 301 | public function getContentObject() { |
302 | 302 | $this->loadFile(); |
@@ -637,7 +637,7 @@ discard block |
||
637 | 637 | * Make the text under the image to say what size preview |
638 | 638 | * |
639 | 639 | * @param $params array parameters for thumbnail |
640 | - * @param $sizeLinkBigImagePreview HTML for the current size |
|
640 | + * @param string $sizeLinkBigImagePreview HTML for the current size |
|
641 | 641 | * @return string HTML output |
642 | 642 | */ |
643 | 643 | private function getThumbPrevText( $params, $sizeLinkBigImagePreview ) { |
@@ -1212,7 +1212,7 @@ discard block |
||
1212 | 1212 | |
1213 | 1213 | /** |
1214 | 1214 | * @see WikiFilePage::getFile |
1215 | - * @return bool|File |
|
1215 | + * @return string |
|
1216 | 1216 | */ |
1217 | 1217 | public function getFile() { |
1218 | 1218 | return $this->mPage->getFile(); |
@@ -434,7 +434,7 @@ discard block |
||
434 | 434 | /** |
435 | 435 | * Return the list of revision fields that should be selected to create |
436 | 436 | * a new revision. |
437 | - * @return array |
|
437 | + * @return string[] |
|
438 | 438 | */ |
439 | 439 | public static function selectFields() { |
440 | 440 | global $wgContentHandlerUseDB; |
@@ -465,7 +465,7 @@ discard block |
||
465 | 465 | /** |
466 | 466 | * Return the list of revision fields that should be selected to create |
467 | 467 | * a new revision from an archive row. |
468 | - * @return array |
|
468 | + * @return string[] |
|
469 | 469 | */ |
470 | 470 | public static function selectArchiveFields() { |
471 | 471 | global $wgContentHandlerUseDB; |
@@ -496,7 +496,7 @@ discard block |
||
496 | 496 | /** |
497 | 497 | * Return the list of text fields that should be selected to read the |
498 | 498 | * revision text |
499 | - * @return array |
|
499 | + * @return string[] |
|
500 | 500 | */ |
501 | 501 | public static function selectTextFields() { |
502 | 502 | return [ |
@@ -507,7 +507,7 @@ discard block |
||
507 | 507 | |
508 | 508 | /** |
509 | 509 | * Return the list of page fields that should be selected from page table |
510 | - * @return array |
|
510 | + * @return string[] |
|
511 | 511 | */ |
512 | 512 | public static function selectPageFields() { |
513 | 513 | return [ |
@@ -522,7 +522,7 @@ discard block |
||
522 | 522 | |
523 | 523 | /** |
524 | 524 | * Return the list of user fields that should be selected from user table |
525 | - * @return array |
|
525 | + * @return string[] |
|
526 | 526 | */ |
527 | 527 | public static function selectUserFields() { |
528 | 528 | return [ 'user_name' ]; |
@@ -870,7 +870,7 @@ discard block |
||
870 | 870 | /** |
871 | 871 | * Fetch revision's user id without regard for the current user's permissions |
872 | 872 | * |
873 | - * @return string |
|
873 | + * @return integer |
|
874 | 874 | * @deprecated since 1.25, use getUser( Revision::RAW ) |
875 | 875 | */ |
876 | 876 | public function getRawUser() { |
@@ -1787,7 +1787,7 @@ discard block |
||
1787 | 1787 | * |
1788 | 1788 | * @param Title $title |
1789 | 1789 | * @param int $id |
1790 | - * @return string|bool False if not found |
|
1790 | + * @return string|false False if not found |
|
1791 | 1791 | */ |
1792 | 1792 | static function getTimestampFromId( $title, $id, $flags = 0 ) { |
1793 | 1793 | $db = ( $flags & self::READ_LATEST ) |
@@ -1843,7 +1843,7 @@ discard block |
||
1843 | 1843 | * @since 1.20 |
1844 | 1844 | * @deprecated since 1.24 |
1845 | 1845 | * |
1846 | - * @param IDatabase|int $db The Database to perform the check on. May be given as a |
|
1846 | + * @param integer $db The Database to perform the check on. May be given as a |
|
1847 | 1847 | * Database object or a database identifier usable with wfGetDB. |
1848 | 1848 | * @param int $pageId The ID of the page in question |
1849 | 1849 | * @param int $userId The ID of the user in question |