@@ -661,7 +661,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |