Completed
Branch master (fb4c96)
by
unknown
21:11
created
includes/OutputPage.php 1 patch
Doc Comments   +16 added lines, -10 removed lines patch added patch discarded remove patch
@@ -661,7 +661,7 @@  discard block
 block discarded – undo
661 661
 	 * Add one or more head items to the output
662 662
 	 *
663 663
 	 * @since 1.28
664
-	 * @param string|string[] $value Raw HTML
664
+	 * @param string|string[] $values Raw HTML
665 665
 	 */
666 666
 	public function addHeadItems( $values ) {
667 667
 		$this->mHeadItems = array_merge( $this->mHeadItems, (array)$values );
@@ -978,7 +978,7 @@  discard block
 block discarded – undo
978 978
 	/**
979 979
 	 * Replace the subtitle with $str
980 980
 	 *
981
-	 * @param string|Message $str New value of the subtitle. String should be safe HTML.
981
+	 * @param string $str New value of the subtitle. String should be safe HTML.
982 982
 	 */
983 983
 	public function setSubtitle( $str ) {
984 984
 		$this->clearSubtitle();
@@ -1596,7 +1596,7 @@  discard block
 block discarded – undo
1596 1596
 	/**
1597 1597
 	 * Set the displayed file version
1598 1598
 	 *
1599
-	 * @param File|bool $file
1599
+	 * @param File $file
1600 1600
 	 * @return mixed Previous value
1601 1601
 	 */
1602 1602
 	public function setFileVersion( $file ) {
@@ -1940,7 +1940,7 @@  discard block
 block discarded – undo
1940 1940
 	 * the TTL is higher the older the $mtime timestamp is. Essentially, the
1941 1941
 	 * TTL is 90% of the age of the object, subject to the min and max.
1942 1942
 	 *
1943
-	 * @param string|integer|float|bool|null $mtime Last-Modified timestamp
1943
+	 * @param false|string $mtime Last-Modified timestamp
1944 1944
 	 * @param integer $minTTL Mimimum TTL in seconds [default: 1 minute]
1945 1945
 	 * @param integer $maxTTL Maximum TTL in seconds [default: $wgSquidMaxage]
1946 1946
 	 * @return integer TTL in seconds
@@ -1977,7 +1977,7 @@  discard block
 block discarded – undo
1977 1977
 	/**
1978 1978
 	 * Get the list of cookies that will influence on the cache
1979 1979
 	 *
1980
-	 * @return array
1980
+	 * @return string[]
1981 1981
 	 */
1982 1982
 	function getCacheVaryCookies() {
1983 1983
 		static $cookies;
@@ -2368,7 +2368,7 @@  discard block
 block discarded – undo
2368 2368
 	 * indexing, clear the current text and redirect, set the page's title
2369 2369
 	 * and optionally an custom HTML title (content of the "<title>" tag).
2370 2370
 	 *
2371
-	 * @param string|Message $pageTitle Will be passed directly to setPageTitle()
2371
+	 * @param Message $pageTitle Will be passed directly to setPageTitle()
2372 2372
 	 * @param string|Message $htmlTitle Will be passed directly to setHTMLTitle();
2373 2373
 	 *                   optional, if not passed the "<title>" attribute will be
2374 2374
 	 *                   based on $pageTitle
@@ -2394,8 +2394,8 @@  discard block
 block discarded – undo
2394 2394
 	 * showErrorPage( 'titlemsg', $messageObject );
2395 2395
 	 * showErrorPage( $titleMessageObject, $messageObject );
2396 2396
 	 *
2397
-	 * @param string|Message $title Message key (string) for page title, or a Message object
2398
-	 * @param string|Message $msg Message key (string) for page text, or a Message object
2397
+	 * @param string $title Message key (string) for page title, or a Message object
2398
+	 * @param string $msg Message key (string) for page text, or a Message object
2399 2399
 	 * @param array $params Message parameters; ignored if $msg is a Message object
2400 2400
 	 */
2401 2401
 	public function showErrorPage( $title, $msg, $params = [] ) {
@@ -2596,6 +2596,9 @@  discard block
 block discarded – undo
2596 2596
 		}
2597 2597
 	}
2598 2598
 
2599
+	/**
2600
+	 * @param string $message
2601
+	 */
2599 2602
 	public function showFatalError( $message ) {
2600 2603
 		$this->prepareErrorPage( $this->msg( 'internalerror' ) );
2601 2604
 
@@ -2614,6 +2617,9 @@  discard block
 block discarded – undo
2614 2617
 		$this->showFatalError( $this->msg( 'filerenameerror', $old, $new )->text() );
2615 2618
 	}
2616 2619
 
2620
+	/**
2621
+	 * @param string $name
2622
+	 */
2617 2623
 	public function showFileDeleteError( $name ) {
2618 2624
 		$this->showFatalError( $this->msg( 'filedeleteerror', $name )->text() );
2619 2625
 	}
@@ -2640,7 +2646,7 @@  discard block
 block discarded – undo
2640 2646
 	 * Add a "return to" link pointing to a specified title,
2641 2647
 	 * or the title indicated in the request, or else the main page
2642 2648
 	 *
2643
-	 * @param mixed $unused
2649
+	 * @param null|boolean $unused
2644 2650
 	 * @param Title|string $returnto Title or String to return to
2645 2651
 	 * @param string $returntoquery Query string for the return to link
2646 2652
 	 */
@@ -3668,7 +3674,7 @@  discard block
 block discarded – undo
3668 3674
 	 * Caller is responsible for ensuring the file exists. Emits a PHP warning otherwise.
3669 3675
 	 *
3670 3676
 	 * @since 1.27
3671
-	 * @param string $remotePath URL path prefix that points to $localPath
3677
+	 * @param string $remotePathPrefix URL path prefix that points to $localPath
3672 3678
 	 * @param string $localPath File directory exposed at $remotePath
3673 3679
 	 * @param string $file Path to target file relative to $localPath
3674 3680
 	 * @return string URL
Please login to merge, or discard this patch.
includes/libs/StatusValue.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
 	/**
247 247
 	 * Returns true if the specified message is present as a warning or error
248 248
 	 *
249
-	 * @param string|MessageSpecifier $message Message key or object to search for
249
+	 * @param string $message Message key or object to search for
250 250
 	 *
251 251
 	 * @return bool
252 252
 	 */
@@ -274,8 +274,8 @@  discard block
 block discarded – undo
274 274
 	 * Note, due to the lack of tools for comparing IStatusMessage objects, this
275 275
 	 * function will not work when using such an object as the search parameter.
276 276
 	 *
277
-	 * @param MessageSpecifier|string $source Message key or object to search for
278
-	 * @param MessageSpecifier|string $dest Replacement message key or object
277
+	 * @param string $source Message key or object to search for
278
+	 * @param string $dest Replacement message key or object
279 279
 	 * @return bool Return true if the replacement was done, false otherwise.
280 280
 	 */
281 281
 	public function replaceMessage( $source, $dest ) {
Please login to merge, or discard this patch.
includes/Status.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
 	 *     1 => object(Status) # The Status with warning messages, only
114 114
 	 * ]
115 115
 	 *
116
-	 * @return Status[]
116
+	 * @return StatusValue[]
117 117
 	 */
118 118
 	public function splitByErrorType() {
119 119
 		list( $errorsOnlyStatus, $warningsOnlyStatus ) = parent::splitByErrorType();
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
 	 *
226 226
 	 * If both parameters are missing, and there is only one error, no bullet will be added.
227 227
 	 *
228
-	 * @param string|string[]|bool $shortContext A message name or an array of message names.
228
+	 * @param string $shortContext A message name or an array of message names.
229 229
 	 * @param string|string[]|bool $longContext A message name or an array of message names.
230 230
 	 * @param string|Language $lang Language to use for processing messages
231 231
 	 * @return Message
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
 	 * @param string|bool $shortContext A short enclosing context message name, to
310 310
 	 *        be used when there is a single error
311 311
 	 * @param string|bool $longContext A long enclosing context message name, for a list
312
-	 * @param string|Language|null $lang Language to use for processing messages
312
+	 * @param Language $lang Language to use for processing messages
313 313
 	 * @return string
314 314
 	 */
315 315
 	public function getHTML( $shortContext = false, $longContext = false, $lang = null ) {
Please login to merge, or discard this patch.