@@ -46,7 +46,7 @@ |
||
46 | 46 | * |
47 | 47 | * @param int $id Page id to update |
48 | 48 | * @param Title|string $title Title of page to update |
49 | - * @param Content|string|bool $c Content of the page to update. Default: false. |
|
49 | + * @param Content|null $c Content of the page to update. Default: false. |
|
50 | 50 | * If a Content object, text will be gotten from it. String is for back-compat. |
51 | 51 | * Passing false tells the backend to just update the title, not the content |
52 | 52 | */ |
@@ -38,6 +38,12 @@ |
||
38 | 38 | protected $images = 0; |
39 | 39 | |
40 | 40 | // @todo deprecate this constructor |
41 | + |
|
42 | + /** |
|
43 | + * @param integer $views |
|
44 | + * @param integer $edits |
|
45 | + * @param integer $good |
|
46 | + */ |
|
41 | 47 | function __construct( $views, $edits, $good, $pages = 0, $users = 0 ) { |
42 | 48 | $this->edits = $edits; |
43 | 49 | $this->articles = $good; |
@@ -28,7 +28,7 @@ |
||
28 | 28 | */ |
29 | 29 | class BadTitleError extends ErrorPageError { |
30 | 30 | /** |
31 | - * @param string|Message|MalformedTitleException $msg A message key (default: 'badtitletext'), or |
|
31 | + * @param MalformedTitleException $msg A message key (default: 'badtitletext'), or |
|
32 | 32 | * a MalformedTitleException to figure out things from |
33 | 33 | * @param array $params Parameter to wfMessage() |
34 | 34 | */ |
@@ -265,6 +265,10 @@ |
||
265 | 265 | header( $header ); |
266 | 266 | } |
267 | 267 | } |
268 | + |
|
269 | + /** |
|
270 | + * @param integer $code |
|
271 | + */ |
|
268 | 272 | private static function statusHeader( $code ) { |
269 | 273 | if ( !headers_sent() ) { |
270 | 274 | HttpStatus::header( $code ); |
@@ -159,7 +159,7 @@ |
||
159 | 159 | * } |
160 | 160 | * |
161 | 161 | * @since 1.25 |
162 | - * @param Exception|Throwable $e |
|
162 | + * @param Exception $e |
|
163 | 163 | */ |
164 | 164 | public static function handleException( $e ) { |
165 | 165 | try { |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | /** |
77 | 77 | * Override to write to a different stream type. |
78 | 78 | * @param string $string |
79 | - * @return bool |
|
79 | + * @return boolean|null |
|
80 | 80 | */ |
81 | 81 | function write( $string ) { |
82 | 82 | print $string; |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | * and reopen new file with the old name. Use this |
88 | 88 | * for writing out a file in multiple pieces |
89 | 89 | * at specified checkpoints (e.g. every n hours). |
90 | - * @param string|array $newname File name. May be a string or an array with one element |
|
90 | + * @param string $newname File name. May be a string or an array with one element |
|
91 | 91 | */ |
92 | 92 | function closeRenameAndReopen( $newname ) { |
93 | 93 | } |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | * Close the old file, and move it to a specified name. |
97 | 97 | * Use this for the last piece of a file written out |
98 | 98 | * at specified checkpoints (e.g. every n hours). |
99 | - * @param string|array $newname File name. May be a string or an array with one element |
|
99 | + * @param string $newname File name. May be a string or an array with one element |
|
100 | 100 | * @param bool $open If true, a new file with the old filename will be opened |
101 | 101 | * again for writing (default: false) |
102 | 102 | */ |
@@ -210,7 +210,7 @@ |
||
210 | 210 | * Not called by default (depends on $this->list_authors) |
211 | 211 | * Can be set by Special:Export when not exporting whole history |
212 | 212 | * |
213 | - * @param array $cond |
|
213 | + * @param string $cond |
|
214 | 214 | */ |
215 | 215 | protected function do_list_authors( $cond ) { |
216 | 216 | $this->author_list = "<contributors>"; |
@@ -128,7 +128,7 @@ |
||
128 | 128 | * Get the value of the parameter with the given name |
129 | 129 | * |
130 | 130 | * @param string $name |
131 | - * @return mixed Returns null if the parameter is not set |
|
131 | + * @return string Returns null if the parameter is not set |
|
132 | 132 | */ |
133 | 133 | final public function getParam( $name ) { |
134 | 134 | return isset( $this->params[$name] ) ? $this->params[$name] : null; |
@@ -215,7 +215,7 @@ discard block |
||
215 | 215 | |
216 | 216 | /** |
217 | 217 | * Fields in the filearchive table |
218 | - * @return array |
|
218 | + * @return string[] |
|
219 | 219 | */ |
220 | 220 | static function selectFields() { |
221 | 221 | return array( |
@@ -421,7 +421,7 @@ discard block |
||
421 | 421 | /** |
422 | 422 | * Returns the number of pages of a multipage document, or false for |
423 | 423 | * documents which aren't multipage documents |
424 | - * @return bool|int |
|
424 | + * @return string|boolean |
|
425 | 425 | */ |
426 | 426 | function pageCount() { |
427 | 427 | if ( !isset( $this->pageCount ) ) { |