@@ -84,7 +84,7 @@ |
||
84 | 84 | * Get a key on the primary cache for this repository. |
85 | 85 | * Returns false if the repository's cache is not accessible at this site. |
86 | 86 | * The parameters are the parts of the key, as for wfMemcKey(). |
87 | - * @return bool|string |
|
87 | + * @return string|false |
|
88 | 88 | */ |
89 | 89 | function getSharedCacheKey( /*...*/ ) { |
90 | 90 | if ( $this->hasSharedCache() ) { |
@@ -1219,7 +1219,7 @@ discard block |
||
1219 | 1219 | * $ttl = $cache->adaptiveTTL( $mtime, $cache::TTL_DAY ); |
1220 | 1220 | * @endcode |
1221 | 1221 | * |
1222 | - * @param integer|float $mtime UNIX timestamp |
|
1222 | + * @param string|boolean $mtime UNIX timestamp |
|
1223 | 1223 | * @param integer $maxTTL Maximum TTL (seconds) |
1224 | 1224 | * @param integer $minTTL Minimum TTL (seconds); Default: 30 |
1225 | 1225 | * @param float $factor Value in the range (0,1); Default: .2 |
@@ -1383,7 +1383,7 @@ discard block |
||
1383 | 1383 | * @param mixed $value |
1384 | 1384 | * @param integer $ttl [0=forever] |
1385 | 1385 | * @param float $now Unix Current timestamp just before calling set() |
1386 | - * @return array |
|
1386 | + * @return integer |
|
1387 | 1387 | */ |
1388 | 1388 | protected function wrap( $value, $ttl, $now ) { |
1389 | 1389 | return [ |
@@ -450,7 +450,7 @@ discard block |
||
450 | 450 | |
451 | 451 | /** |
452 | 452 | * Get a connection to the replica DB |
453 | - * @return IDatabase |
|
453 | + * @return Database|null |
|
454 | 454 | */ |
455 | 455 | function getSlaveDB() { |
456 | 456 | return wfGetDB( DB_REPLICA ); |
@@ -458,7 +458,7 @@ discard block |
||
458 | 458 | |
459 | 459 | /** |
460 | 460 | * Get a connection to the master DB |
461 | - * @return IDatabase |
|
461 | + * @return Database|null |
|
462 | 462 | */ |
463 | 463 | function getMasterDB() { |
464 | 464 | return wfGetDB( DB_MASTER ); |
@@ -79,6 +79,9 @@ |
||
79 | 79 | return $states['lagTimes']; |
80 | 80 | } |
81 | 81 | |
82 | + /** |
|
83 | + * @param string|boolean $domain |
|
84 | + */ |
|
82 | 85 | protected function getServerStates( array $serverIndexes, $domain ) { |
83 | 86 | $writerIndex = $this->parent->getWriterIndex(); |
84 | 87 | if ( count( $serverIndexes ) == 1 && reset( $serverIndexes ) == $writerIndex ) { |