Completed
Branch master (573807)
by
unknown
34:51
created
includes/http/MWHttpRequest.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -162,7 +162,7 @@
 block discarded – undo
162 162
 	 * @param array $options (optional) extra params to pass (see Http::request())
163 163
 	 * @param string $caller The method making this request, for profiling
164 164
 	 * @throws MWException
165
-	 * @return CurlHttpRequest|PhpHttpRequest
165
+	 * @return string
166 166
 	 * @see MWHttpRequest::__construct
167 167
 	 */
168 168
 	public static function factory( $url, $options = null, $caller = __METHOD__ ) {
Please login to merge, or discard this patch.
includes/changes/ChangesFeed.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -164,7 +164,7 @@
 block discarded – undo
164 164
 
165 165
 	/**
166 166
 	 * Generate the feed items given a row from the database, printing the feed.
167
-	 * @param object $rows IDatabase resource with recentchanges rows
167
+	 * @param ResultWrapper $rows IDatabase resource with recentchanges rows
168 168
 	 * @param ChannelFeed $feed
169 169
 	 */
170 170
 	public static function generateFeed( $rows, &$feed ) {
Please login to merge, or discard this patch.
includes/libs/objectcache/WANObjectCache.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1219,7 +1219,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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 [
Please login to merge, or discard this patch.
includes/filerepo/LocalRepo.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -450,7 +450,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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 );
Please login to merge, or discard this patch.
includes/libs/rdbms/loadmonitor/LoadMonitor.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -79,6 +79,9 @@
 block discarded – undo
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 ) {
Please login to merge, or discard this patch.
includes/api/ApiQueryBase.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
 	 * See ApiQuery::getNamedDB() for more information
119 119
 	 * @param string $name Name to assign to the database connection
120 120
 	 * @param int $db One of the DB_* constants
121
-	 * @param array $groups Query groups
121
+	 * @param string $groups Query groups
122 122
 	 * @return Database
123 123
 	 */
124 124
 	public function selectNamedDB( $name, $db, $groups ) {
@@ -398,7 +398,7 @@  discard block
 block discarded – undo
398 398
 	 * here in the same way it treats a false return from addValue().
399 399
 	 *
400 400
 	 * @since 1.28
401
-	 * @param object $row Database row
401
+	 * @param stdClass|null $row Database row
402 402
 	 * @param array &$data Data to be added to the result
403 403
 	 * @param array &$hookData Hook data from ApiQueryBase::select()
404 404
 	 * @return bool Return false if row processing should end with continuation
@@ -581,7 +581,7 @@  discard block
 block discarded – undo
581 581
 
582 582
 	/**
583 583
 	 * @param string $hash
584
-	 * @return bool
584
+	 * @return integer
585 585
 	 */
586 586
 	public function validateSha1Hash( $hash ) {
587 587
 		return preg_match( '/^[a-f0-9]{40}$/', $hash );
@@ -589,7 +589,7 @@  discard block
 block discarded – undo
589 589
 
590 590
 	/**
591 591
 	 * @param string $hash
592
-	 * @return bool
592
+	 * @return integer
593 593
 	 */
594 594
 	public function validateSha1Base36Hash( $hash ) {
595 595
 		return preg_match( '/^[a-z0-9]{31}$/', $hash );
Please login to merge, or discard this patch.
includes/user/BotPassword.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
 	/**
69 69
 	 * Get a database connection for the bot passwords database
70 70
 	 * @param int $db Index of the connection to get, e.g. DB_MASTER or DB_REPLICA.
71
-	 * @return Database
71
+	 * @return DBConnRef
72 72
 	 */
73 73
 	public static function getDB( $db ) {
74 74
 		global $wgBotPasswordsCluster, $wgBotPasswordsDatabase;
Please login to merge, or discard this patch.