Completed
Branch master (49a6bc)
by
unknown
27:46
created
includes/utils/AutoloadGenerator.php 1 patch
Doc Comments   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -158,8 +158,8 @@  discard block
 block discarded – undo
158 158
 	/**
159 159
 	 * Generates a PHP file setting up autoload information.
160 160
 	 *
161
-	 * @param {string} $commandName Command name to include in comment
162
-	 * @param {string} $filename of PHP file to put autoload information in.
161
+	 * @param string $commandName Command name to include in comment
162
+	 * @param string $filename of PHP file to put autoload information in.
163 163
 	 */
164 164
 	protected function generatePHPAutoload( $commandName, $filename ) {
165 165
 		// No existing JSON file found; update/generate PHP file
@@ -320,6 +320,7 @@  discard block
 block discarded – undo
320 320
 
321 321
 	/**
322 322
 	 * @var string $code PHP code (including <?php) to detect class names from
323
+	 * @param string $code
323 324
 	 * @return array List of FQCN detected within the tokens
324 325
 	 */
325 326
 	public function getClasses( $code ) {
Please login to merge, or discard this patch.
includes/media/MediaHandler.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 	 * Get a MediaHandler for a given MIME type from the instance cache
42 42
 	 *
43 43
 	 * @param string $type
44
-	 * @return MediaHandler|bool
44
+	 * @return File
45 45
 	 */
46 46
 	static function getHandler( $type ) {
47 47
 		return MediaWikiServices::getInstance()
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
 	 *
174 174
 	 * @note This method is currently unused.
175 175
 	 * @param File $image
176
-	 * @return string
176
+	 * @return boolean
177 177
 	 */
178 178
 	function getMetadataType( $image ) {
179 179
 		return false;
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
 	 * @param string $ext Extension of original file
286 286
 	 * @param string $mime MIME type of original file
287 287
 	 * @param array $params Handler specific rendering parameters
288
-	 * @return array Thumbnail extension and MIME type
288
+	 * @return string[] Thumbnail extension and MIME type
289 289
 	 */
290 290
 	function getThumbType( $ext, $mime, $params = null ) {
291 291
 		$magic = MimeMagic::singleton();
@@ -625,7 +625,7 @@  discard block
 block discarded – undo
625 625
 	 * @param int $boxWidth Width of the thumbnail box.
626 626
 	 * @param int $boxHeight Height of the thumbnail box.
627 627
 	 * @param int $maxHeight Maximum height expected for the thumbnail.
628
-	 * @return int
628
+	 * @return double
629 629
 	 */
630 630
 	public static function fitBoxWidth( $boxWidth, $boxHeight, $maxHeight ) {
631 631
 		$idealWidth = $boxWidth * $maxHeight / $boxHeight;
Please login to merge, or discard this patch.
includes/OutputPage.php 1 patch
Doc Comments   +15 added lines, -9 removed lines patch added patch discarded remove patch
@@ -652,7 +652,7 @@  discard block
 block discarded – undo
652 652
 	 * Add one or more head items to the output
653 653
 	 *
654 654
 	 * @since 1.28
655
-	 * @param string|string[] $value Raw HTML
655
+	 * @param string|string[] $values Raw HTML
656 656
 	 */
657 657
 	public function addHeadItems( $values ) {
658 658
 		$this->mHeadItems = array_merge( $this->mHeadItems, (array)$values );
@@ -969,7 +969,7 @@  discard block
 block discarded – undo
969 969
 	/**
970 970
 	 * Replace the subtitle with $str
971 971
 	 *
972
-	 * @param string|Message $str New value of the subtitle. String should be safe HTML.
972
+	 * @param string $str New value of the subtitle. String should be safe HTML.
973 973
 	 */
974 974
 	public function setSubtitle( $str ) {
975 975
 		$this->clearSubtitle();
@@ -1587,7 +1587,7 @@  discard block
 block discarded – undo
1587 1587
 	/**
1588 1588
 	 * Set the displayed file version
1589 1589
 	 *
1590
-	 * @param File|bool $file
1590
+	 * @param File $file
1591 1591
 	 * @return mixed Previous value
1592 1592
 	 */
1593 1593
 	public function setFileVersion( $file ) {
@@ -1936,7 +1936,7 @@  discard block
 block discarded – undo
1936 1936
 	/**
1937 1937
 	 * Get the list of cookies that will influence on the cache
1938 1938
 	 *
1939
-	 * @return array
1939
+	 * @return string[]
1940 1940
 	 */
1941 1941
 	function getCacheVaryCookies() {
1942 1942
 		static $cookies;
@@ -2315,7 +2315,7 @@  discard block
 block discarded – undo
2315 2315
 	 * indexing, clear the current text and redirect, set the page's title
2316 2316
 	 * and optionally an custom HTML title (content of the "<title>" tag).
2317 2317
 	 *
2318
-	 * @param string|Message $pageTitle Will be passed directly to setPageTitle()
2318
+	 * @param Message $pageTitle Will be passed directly to setPageTitle()
2319 2319
 	 * @param string|Message $htmlTitle Will be passed directly to setHTMLTitle();
2320 2320
 	 *                   optional, if not passed the "<title>" attribute will be
2321 2321
 	 *                   based on $pageTitle
@@ -2341,8 +2341,8 @@  discard block
 block discarded – undo
2341 2341
 	 * showErrorPage( 'titlemsg', $messageObject );
2342 2342
 	 * showErrorPage( $titleMessageObject, $messageObject );
2343 2343
 	 *
2344
-	 * @param string|Message $title Message key (string) for page title, or a Message object
2345
-	 * @param string|Message $msg Message key (string) for page text, or a Message object
2344
+	 * @param string $title Message key (string) for page title, or a Message object
2345
+	 * @param string $msg Message key (string) for page text, or a Message object
2346 2346
 	 * @param array $params Message parameters; ignored if $msg is a Message object
2347 2347
 	 */
2348 2348
 	public function showErrorPage( $title, $msg, $params = [] ) {
@@ -2538,6 +2538,9 @@  discard block
 block discarded – undo
2538 2538
 		}
2539 2539
 	}
2540 2540
 
2541
+	/**
2542
+	 * @param string $message
2543
+	 */
2541 2544
 	public function showFatalError( $message ) {
2542 2545
 		$this->prepareErrorPage( $this->msg( 'internalerror' ) );
2543 2546
 
@@ -2556,6 +2559,9 @@  discard block
 block discarded – undo
2556 2559
 		$this->showFatalError( $this->msg( 'filerenameerror', $old, $new )->text() );
2557 2560
 	}
2558 2561
 
2562
+	/**
2563
+	 * @param string $name
2564
+	 */
2559 2565
 	public function showFileDeleteError( $name ) {
2560 2566
 		$this->showFatalError( $this->msg( 'filedeleteerror', $name )->text() );
2561 2567
 	}
@@ -2582,7 +2588,7 @@  discard block
 block discarded – undo
2582 2588
 	 * Add a "return to" link pointing to a specified title,
2583 2589
 	 * or the title indicated in the request, or else the main page
2584 2590
 	 *
2585
-	 * @param mixed $unused
2591
+	 * @param null|boolean $unused
2586 2592
 	 * @param Title|string $returnto Title or String to return to
2587 2593
 	 * @param string $returntoquery Query string for the return to link
2588 2594
 	 */
@@ -3843,7 +3849,7 @@  discard block
 block discarded – undo
3843 3849
 	 * Caller is responsible for ensuring the file exists. Emits a PHP warning otherwise.
3844 3850
 	 *
3845 3851
 	 * @since 1.27
3846
-	 * @param string $remotePath URL path prefix that points to $localPath
3852
+	 * @param string $remotePathPrefix URL path prefix that points to $localPath
3847 3853
 	 * @param string $localPath File directory exposed at $remotePath
3848 3854
 	 * @param string $file Path to target file relative to $localPath
3849 3855
 	 * @return string URL
Please login to merge, or discard this patch.
includes/tidy/Balancer.php 1 patch
Doc Comments   +18 added lines, -3 removed lines patch added patch discarded remove patch
@@ -800,7 +800,7 @@  discard block
 block discarded – undo
800 800
 
801 801
 	/**
802 802
 	 * Determine if the stack has $tag in button scope.
803
-	 * @param BalanceElement|array|string $tag
803
+	 * @param string $tag
804 804
 	 * @return bool
805 805
 	 * @see https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-button-scope
806 806
 	 */
@@ -890,6 +890,7 @@  discard block
 block discarded – undo
890 890
 
891 891
 	/**
892 892
 	 * Return the adjusted current node.
893
+	 * @param BalanceElement|null $fragmentContext
893 894
 	 */
894 895
 	public function adjustedCurrentNode( $fragmentContext ) {
895 896
 		return ( $fragmentContext && count( $this->elements ) === 1 ) ?
@@ -899,7 +900,7 @@  discard block
 block discarded – undo
899 900
 	/**
900 901
 	 * Return an iterator over this stack which visits the current node
901 902
 	 * first, and the root node last.
902
-	 * @return Iterator
903
+	 * @return ReverseArrayIterator
903 904
 	 */
904 905
 	public function getIterator() {
905 906
 		return new ReverseArrayIterator( $this->elements );
@@ -1133,7 +1134,7 @@  discard block
 block discarded – undo
1133 1134
 	 * @param string $tag The subject tag name.
1134 1135
 	 * @param BalanceActiveFormattingElements $afe The current
1135 1136
 	 *   active formatting elements list.
1136
-	 * @return true if the adoption agency algorithm "did something", false
1137
+	 * @return boolean if the adoption agency algorithm "did something", false
1137 1138
 	 *   if more processing is required by the caller.
1138 1139
 	 * @see https://html.spec.whatwg.org/multipage/syntax.html#adoption-agency-algorithm
1139 1140
 	 */
@@ -1499,6 +1500,7 @@  discard block
 block discarded – undo
1499 1500
 	 * Find and return the last element with the specified tag between the
1500 1501
 	 * end of the list and the last marker on the list.
1501 1502
 	 * Used when parsing &lt;a&gt; "in body mode".
1503
+	 * @param string $tag
1502 1504
 	 */
1503 1505
 	public function findElementByTag( $tag ) {
1504 1506
 		$elt = $this->tail;
@@ -1646,6 +1648,10 @@  discard block
 block discarded – undo
1646 1648
 	 * @see https://html.spec.whatwg.org/multipage/syntax.html#reconstruct-the-active-formatting-elements
1647 1649
 	 */
1648 1650
 	// @codingStandardsIgnoreEnd
1651
+
1652
+	/**
1653
+	 * @param BalanceStack|null $stack
1654
+	 */
1649 1655
 	public function reconstruct( $stack ) {
1650 1656
 		$entry = $this->tail;
1651 1657
 		// If there are no entries in the list of active formatting elements,
@@ -2214,6 +2220,10 @@  discard block
 block discarded – undo
2214 2220
 		return $oldMode;
2215 2221
 	}
2216 2222
 
2223
+	/**
2224
+	 * @param string $mode
2225
+	 * @param boolean $selfClose
2226
+	 */
2217 2227
 	private function switchModeAndReprocess( $mode, $token, $value, $attribs, $selfClose ) {
2218 2228
 		$this->switchMode( $mode );
2219 2229
 		return $this->insertToken( $token, $value, $attribs, $selfClose );
@@ -3299,6 +3309,11 @@  discard block
 block discarded – undo
3299 3309
 			return false;
3300 3310
 		}
3301 3311
 	}
3312
+
3313
+	/**
3314
+	 * @param string $token
3315
+	 * @param string $value
3316
+	 */
3302 3317
 	private function inCellMode( $token, $value, $attribs = null, $selfClose = false ) {
3303 3318
 		if ( $token === 'tag' ) {
3304 3319
 			switch ( $value ) {
Please login to merge, or discard this patch.
includes/GlobalFunctions.php 1 patch
Doc Comments   +13 added lines, -19 removed lines patch added patch discarded remove patch
@@ -234,7 +234,6 @@  discard block
 block discarded – undo
234 234
  *   		[ 'y' ]
235 235
  *   	]
236 236
  *
237
- * @param array $array1,...
238 237
  * @return array
239 238
  */
240 239
 function wfMergeErrorArrays( /*...*/ ) {
@@ -261,8 +260,8 @@  discard block
 block discarded – undo
261 260
  *
262 261
  * @param array $array The array.
263 262
  * @param array $insert The array to insert.
264
- * @param mixed $after The key to insert after
265
- * @return array
263
+ * @param string $after The key to insert after
264
+ * @return string[]
266 265
  */
267 266
 function wfArrayInsertAfter( array $array, array $insert, $after ) {
268 267
 	// Find the offset of the element to insert after.
@@ -1300,7 +1299,7 @@  discard block
 block discarded – undo
1300 1299
 /**
1301 1300
  * Get the value of $wgReadOnly or the contents of $wgReadOnlyFile.
1302 1301
  *
1303
- * @return string|bool String when in read-only mode; false otherwise
1302
+ * @return string|false String when in read-only mode; false otherwise
1304 1303
  * @since 1.27
1305 1304
  */
1306 1305
 function wfConfiguredReadOnlyReason() {
@@ -1375,7 +1374,6 @@  discard block
 block discarded – undo
1375 1374
  * This function replaces all old wfMsg* functions.
1376 1375
  *
1377 1376
  * @param string|string[]|MessageSpecifier $key Message key, or array of keys, or a MessageSpecifier
1378
- * @param mixed $params,... Normal message parameters
1379 1377
  * @return Message
1380 1378
  *
1381 1379
  * @since 1.17
@@ -1396,7 +1394,6 @@  discard block
 block discarded – undo
1396 1394
  * for the first message which is non-empty. If all messages are empty then an
1397 1395
  * instance of the first message key is returned.
1398 1396
  *
1399
- * @param string|string[] $keys,... Message keys
1400 1397
  * @return Message
1401 1398
  *
1402 1399
  * @since 1.18
@@ -1627,7 +1624,7 @@  discard block
 block discarded – undo
1627 1624
  * @todo FIXME: We may want to blacklist some broken browsers
1628 1625
  *
1629 1626
  * @param bool $force
1630
- * @return bool Whereas client accept gzip compression
1627
+ * @return null|boolean Whereas client accept gzip compression
1631 1628
  */
1632 1629
 function wfClientAcceptsGzip( $force = false ) {
1633 1630
 	static $result = null;
@@ -1763,7 +1760,7 @@  discard block
 block discarded – undo
1763 1760
 /**
1764 1761
  * Provide a simple HTTP error.
1765 1762
  *
1766
- * @param int|string $code
1763
+ * @param integer $code
1767 1764
  * @param string $label
1768 1765
  * @param string $desc
1769 1766
  */
@@ -2045,8 +2042,8 @@  discard block
 block discarded – undo
2045 2042
  *
2046 2043
  * @param mixed $outputtype A timestamp in one of the supported formats, the
2047 2044
  *   function will autodetect which format is supplied and act accordingly.
2048
- * @param mixed $ts Optional timestamp to convert, default 0 for the current time
2049
- * @return string|bool String / false The same date in the format specified in $outputtype or false
2045
+ * @param integer $ts Optional timestamp to convert, default 0 for the current time
2046
+ * @return string|false String / false The same date in the format specified in $outputtype or false
2050 2047
  */
2051 2048
 function wfTimestamp( $outputtype = TS_UNIX, $ts = 0 ) {
2052 2049
 	try {
@@ -2087,7 +2084,7 @@  discard block
 block discarded – undo
2087 2084
 /**
2088 2085
  * Check if the operating system is Windows
2089 2086
  *
2090
- * @return bool True if it's Windows, false otherwise.
2087
+ * @return boolean|null True if it's Windows, false otherwise.
2091 2088
  */
2092 2089
 function wfIsWindows() {
2093 2090
 	static $isWindows = null;
@@ -2344,7 +2341,7 @@  discard block
 block discarded – undo
2344 2341
 /**
2345 2342
  * Check if wfShellExec() is effectively disabled via php.ini config
2346 2343
  *
2347
- * @return bool|string False or 'disabled'
2344
+ * @return string|false False or 'disabled'
2348 2345
  * @since 1.22
2349 2346
  */
2350 2347
 function wfShellExecDisabled() {
@@ -2958,7 +2955,7 @@  discard block
 block discarded – undo
2958 2955
  * @param int $pad Minimum number of digits in the output (pad with zeroes)
2959 2956
  * @param bool $lowercase Whether to output in lowercase or uppercase
2960 2957
  * @param string $engine Either "gmp", "bcmath", or "php"
2961
- * @return string|bool The output number as a string, or false on error
2958
+ * @return false|string The output number as a string, or false on error
2962 2959
  */
2963 2960
 function wfBaseConvert( $input, $sourceBase, $destBase, $pad = 1,
2964 2961
 	$lowercase = true, $engine = 'auto'
@@ -3043,7 +3040,6 @@  discard block
 block discarded – undo
3043 3040
 /**
3044 3041
  * Make a cache key for the local wiki.
3045 3042
  *
3046
- * @param string $args,...
3047 3043
  * @return string
3048 3044
  */
3049 3045
 function wfMemcKey( /*...*/ ) {
@@ -3060,7 +3056,6 @@  discard block
 block discarded – undo
3060 3056
  *
3061 3057
  * @param string $db
3062 3058
  * @param string $prefix
3063
- * @param string $args,...
3064 3059
  * @return string
3065 3060
  */
3066 3061
 function wfForeignMemcKey( $db, $prefix /*...*/ ) {
@@ -3080,7 +3075,6 @@  discard block
 block discarded – undo
3080 3075
  * in the first segment will clash with wfMemcKey/wfForeignMemcKey.
3081 3076
  *
3082 3077
  * @since 1.26
3083
- * @param string $args,...
3084 3078
  * @return string
3085 3079
  */
3086 3080
 function wfGlobalCacheKey( /*...*/ ) {
@@ -3195,7 +3189,7 @@  discard block
 block discarded – undo
3195 3189
  * Returns a valid placeholder object if the file does not exist.
3196 3190
  *
3197 3191
  * @param Title|string $title
3198
- * @return LocalFile|null A File, or null if passed an invalid Title
3192
+ * @return File|null A File, or null if passed an invalid Title
3199 3193
  */
3200 3194
 function wfLocalFile( $title ) {
3201 3195
 	return RepoGroup::singleton()->getLocalRepo()->newFile( $title );
@@ -3400,7 +3394,7 @@  discard block
 block discarded – undo
3400 3394
 /**
3401 3395
  * Set PHP's time limit to the larger of php.ini or $wgTransactionalTimeLimit
3402 3396
  *
3403
- * @return int Prior time limit
3397
+ * @return string Prior time limit
3404 3398
  * @since 1.26
3405 3399
  */
3406 3400
 function wfTransactionalTimeLimit() {
@@ -3536,7 +3530,7 @@  discard block
 block discarded – undo
3536 3530
  *
3537 3531
  * @param string $format The format string (See php's docs)
3538 3532
  * @param string $data A binary string of binary data
3539
- * @param int|bool $length The minimum length of $data or false. This is to
3533
+ * @param integer $length The minimum length of $data or false. This is to
3540 3534
  *	prevent reading beyond the end of $data. false to disable the check.
3541 3535
  *
3542 3536
  * Also be careful when using this function to read unsigned 32 bit integer
Please login to merge, or discard this patch.
includes/specials/SpecialProtectedpages.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
 
182 182
 	/**
183 183
 	 * @param string $sizetype "min" or "max"
184
-	 * @param mixed $size
184
+	 * @param integer $size
185 185
 	 * @return string Formatted HTML
186 186
 	 */
187 187
 	protected function getSizeLimit( $sizetype, $size ) {
@@ -290,9 +290,9 @@  discard block
 block discarded – undo
290 290
 	/**
291 291
 	 * @param SpecialProtectedpages $form
292 292
 	 * @param array $conds
293
-	 * @param $type
294
-	 * @param $level
295
-	 * @param $namespace
293
+	 * @param null|string $type
294
+	 * @param null|string $level
295
+	 * @param integer|null $namespace
296 296
 	 * @param string $sizetype
297 297
 	 * @param int $size
298 298
 	 * @param bool $indefonly
Please login to merge, or discard this patch.
includes/specialpage/LoginSignupSpecialPage.php 1 patch
Doc Comments   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -81,6 +81,9 @@  discard block
 block discarded – undo
81 81
 	 */
82 82
 	abstract protected function logAuthResult( $success, $status = null );
83 83
 
84
+	/**
85
+	 * @param string $name
86
+	 */
84 87
 	public function __construct( $name ) {
85 88
 		global $wgUseMediaWikiUIEverywhere;
86 89
 		parent::__construct( $name );
@@ -365,7 +368,7 @@  discard block
 block discarded – undo
365 368
 	 * Show the success page.
366 369
 	 *
367 370
 	 * @param string $type Condition of return to; see `executeReturnTo`
368
-	 * @param string|Message $title Page's title
371
+	 * @param Message $title Page's title
369 372
 	 * @param string $msgname
370 373
 	 * @param string $injected_html
371 374
 	 * @param StatusValue|null $extraMessages
@@ -414,7 +417,6 @@  discard block
 block discarded – undo
414 417
 	/**
415 418
 	 * Replace some globals to make sure the fact that the user has just been logged in is
416 419
 	 * reflected in the current request.
417
-	 * @param User $user
418 420
 	 */
419 421
 	protected function setSessionUserForCurrentRequest() {
420 422
 		global $wgUser, $wgLang;
Please login to merge, or discard this patch.
includes/user/User.php 1 patch
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1181,7 +1181,7 @@  discard block
 block discarded – undo
1181 1181
 	/**
1182 1182
 	 * Load user data from the session.
1183 1183
 	 *
1184
-	 * @return bool True if the user is logged in, false otherwise.
1184
+	 * @return null|boolean True if the user is logged in, false otherwise.
1185 1185
 	 */
1186 1186
 	private function loadFromSession() {
1187 1187
 		// Deprecated hook
@@ -2855,7 +2855,7 @@  discard block
 block discarded – undo
2855 2855
 	 * resetting it if it's empty (and saving changes).
2856 2856
 	 *
2857 2857
 	 * @param string $oname The option name to retrieve the token from
2858
-	 * @return string|bool User's current value for the option, or false if this option is disabled.
2858
+	 * @return false|string User's current value for the option, or false if this option is disabled.
2859 2859
 	 * @see resetTokenFromOption()
2860 2860
 	 * @see getOption()
2861 2861
 	 * @deprecated since 1.26 Applications should use the OAuth extension
@@ -2884,7 +2884,7 @@  discard block
 block discarded – undo
2884 2884
 	 * *Does not* save user's preferences (similarly to setOption()).
2885 2885
 	 *
2886 2886
 	 * @param string $oname The option name to reset the token in
2887
-	 * @return string|bool New token value, or false if this option is disabled.
2887
+	 * @return false|string New token value, or false if this option is disabled.
2888 2888
 	 * @see getTokenFromOption()
2889 2889
 	 * @see setOption()
2890 2890
 	 */
@@ -2920,7 +2920,7 @@  discard block
 block discarded – undo
2920 2920
 	 * new option kind is added.
2921 2921
 	 *
2922 2922
 	 * @see User::getOptionKinds
2923
-	 * @return array Option kinds
2923
+	 * @return string[] Option kinds
2924 2924
 	 */
2925 2925
 	public static function listOptionKinds() {
2926 2926
 		return [
@@ -4474,7 +4474,7 @@  discard block
 block discarded – undo
4474 4474
 	/**
4475 4475
 	 * Get the timestamp of account creation.
4476 4476
 	 *
4477
-	 * @return string|bool|null Timestamp of account creation, false for
4477
+	 * @return false|string Timestamp of account creation, false for
4478 4478
 	 *  non-existent/anonymous user accounts, or null if existing account
4479 4479
 	 *  but information is not in database.
4480 4480
 	 */
@@ -4489,7 +4489,7 @@  discard block
 block discarded – undo
4489 4489
 	/**
4490 4490
 	 * Get the timestamp of the first edit
4491 4491
 	 *
4492
-	 * @return string|bool Timestamp of first edit, or false for
4492
+	 * @return false|string Timestamp of first edit, or false for
4493 4493
 	 *  non-existent/anonymous user accounts.
4494 4494
 	 */
4495 4495
 	public function getFirstEditTimestamp() {
@@ -5259,7 +5259,7 @@  discard block
 block discarded – undo
5259 5259
 	/**
5260 5260
 	 * Return the list of user fields that should be selected to create
5261 5261
 	 * a new user object.
5262
-	 * @return array
5262
+	 * @return string[]
5263 5263
 	 */
5264 5264
 	public static function selectFields() {
5265 5265
 		return [
Please login to merge, or discard this patch.
includes/api/ApiUpload.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -663,7 +663,7 @@
 block discarded – undo
663 663
 	 * Handles a stash exception, giving a useful error to the user.
664 664
 	 * @param string $exceptionType Class name of the exception we encountered.
665 665
 	 * @param string $message Message of the exception we encountered.
666
-	 * @return array Array of message and code, suitable for passing to dieUsage()
666
+	 * @return string[] Array of message and code, suitable for passing to dieUsage()
667 667
 	 */
668 668
 	protected function handleStashException( $exceptionType, $message ) {
669 669
 		switch ( $exceptionType ) {
Please login to merge, or discard this patch.