@@ -237,7 +237,7 @@ discard block |
||
237 | 237 | * @param string|bool $group Query group, or false for the generic reader |
238 | 238 | * @param string|bool $wiki Wiki ID, or false for the current wiki |
239 | 239 | * @throws MWException |
240 | - * @return bool|int|string |
|
240 | + * @return string |
|
241 | 241 | */ |
242 | 242 | public function getReaderIndex( $group = false, $wiki = false ) { |
243 | 243 | global $wgDBtype; |
@@ -438,7 +438,7 @@ discard block |
||
438 | 438 | * Returns false if there is no connection open |
439 | 439 | * |
440 | 440 | * @param int $i Server index |
441 | - * @return DatabaseBase|bool False on failure |
|
441 | + * @return DatabaseBase|null False on failure |
|
442 | 442 | */ |
443 | 443 | public function getAnyOpenConnection( $i ) { |
444 | 444 | foreach ( $this->mConns as $connsByServer ) { |
@@ -985,7 +985,7 @@ discard block |
||
985 | 985 | |
986 | 986 | /** |
987 | 987 | * Get the current master position for chronology control purposes |
988 | - * @return DBMasterPos|bool Returns false if not applicable |
|
988 | + * @return DBMasterPos Returns false if not applicable |
|
989 | 989 | */ |
990 | 990 | public function getMasterPos() { |
991 | 991 | # If this entire request was served from a replica DB without opening a connection to the |
@@ -1645,7 +1645,7 @@ discard block |
||
1645 | 1645 | * case on many installations. |
1646 | 1646 | * |
1647 | 1647 | * @param IDatabase $conn |
1648 | - * @return int|bool Returns false on error |
|
1648 | + * @return integer Returns false on error |
|
1649 | 1649 | */ |
1650 | 1650 | public function safeGetLag( IDatabase $conn ) { |
1651 | 1651 | if ( $this->getServerCount() == 1 ) { |