@@ -167,6 +167,9 @@ discard block |
||
167 | 167 | */ |
168 | 168 | const RECORD_LENGTH = 14; |
169 | 169 | |
170 | + /** |
|
171 | + * @param string $locale |
|
172 | + */ |
|
170 | 173 | public function __construct( $locale ) { |
171 | 174 | if ( !extension_loaded( 'intl' ) ) { |
172 | 175 | throw new MWException( 'An ICU collation was requested, ' . |
@@ -388,6 +391,7 @@ discard block |
||
388 | 391 | |
389 | 392 | /** |
390 | 393 | * @since 1.16.3 |
394 | + * @param integer $index |
|
391 | 395 | */ |
392 | 396 | public function getLetterByIndex( $index ) { |
393 | 397 | if ( $this->firstLetterData === null ) { |
@@ -449,7 +453,7 @@ discard block |
||
449 | 453 | * currently in use, or false when it can't be determined. |
450 | 454 | * |
451 | 455 | * @since 1.21 |
452 | - * @return string|bool |
|
456 | + * @return false|string |
|
453 | 457 | */ |
454 | 458 | static function getUnicodeVersionForICU() { |
455 | 459 | $icuVersion = IcuCollation::getICUVersion(); |
@@ -39,7 +39,7 @@ |
||
39 | 39 | * instead. |
40 | 40 | * |
41 | 41 | * @param null $sitesTable IGNORED |
42 | - * @param null $cache IGNORED |
|
42 | + * @param null|BagOStuff $cache IGNORED |
|
43 | 43 | * |
44 | 44 | * @return SiteStore |
45 | 45 | */ |
@@ -112,6 +112,9 @@ |
||
112 | 112 | } |
113 | 113 | } |
114 | 114 | |
115 | + /** |
|
116 | + * @return string |
|
117 | + */ |
|
115 | 118 | function stripParameters( $text ) { |
116 | 119 | if ( !$this->stripParametersEnabled ) { |
117 | 120 | return $text; |
@@ -30,6 +30,9 @@ |
||
30 | 30 | } |
31 | 31 | } |
32 | 32 | |
33 | + /** |
|
34 | + * @param string $name |
|
35 | + */ |
|
33 | 36 | function __call( $name, array $arguments ) { |
34 | 37 | if ( $this->conn === null ) { |
35 | 38 | list( $db, $groups, $wiki ) = $this->params; |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | * @param array $data Array of *non*-urlencoded key => value pairs, the |
40 | 40 | * fake GET/POST values |
41 | 41 | * @param bool $wasPosted Whether to treat the data as POST |
42 | - * @param MediaWiki\Session\Session|array|null $session Session, session |
|
42 | + * @param MediaWiki\Session\Session|null $session Session, session |
|
43 | 43 | * data array, or null |
44 | 44 | * @param string $protocol 'http' or 'https' |
45 | 45 | * @throws MWException |
@@ -126,7 +126,6 @@ discard block |
||
126 | 126 | |
127 | 127 | /** |
128 | 128 | * @since 1.26 |
129 | - * @param string $name Unprefixed name of the cookie to set |
|
130 | 129 | * @param string|null $value Value of the cookie to set |
131 | 130 | * @param string|null $prefix Cookie prefix. Defaults to $wgCookiePrefix |
132 | 131 | */ |
@@ -152,6 +151,7 @@ discard block |
||
152 | 151 | |
153 | 152 | /** |
154 | 153 | * @since 1.25 |
154 | + * @param string $url |
|
155 | 155 | */ |
156 | 156 | public function setRequestURL( $url ) { |
157 | 157 | $this->requestUrl = $url; |
@@ -483,6 +483,9 @@ |
||
483 | 483 | return Html::element( 'input', $realAttrs ); |
484 | 484 | } |
485 | 485 | |
486 | + /** |
|
487 | + * @param string $mode |
|
488 | + */ |
|
486 | 489 | function makeSearchButton( $mode, $attrs = array() ) { |
487 | 490 | switch ( $mode ) { |
488 | 491 | case 'go': |
@@ -183,7 +183,7 @@ |
||
183 | 183 | * given $bootstrapConfig. In particular, all wiring files defined in the |
184 | 184 | * ServiceWiringFiles setting are loaded, and the MediaWikiServices hook is called. |
185 | 185 | * |
186 | - * @param Config|null $bootstrapConfig The Config object to be registered as the |
|
186 | + * @param Config $bootstrapConfig The Config object to be registered as the |
|
187 | 187 | * 'BootstrapConfig' service. This has to contain at least the information |
188 | 188 | * needed to set up the 'ConfigFactory' service. If not provided, any call |
189 | 189 | * to getBootstrapConfig(), getConfigFactory, or getMainConfig will fail. |
@@ -1356,7 +1356,7 @@ |
||
1356 | 1356 | * @since 1.18 |
1357 | 1357 | * |
1358 | 1358 | * @param string $key |
1359 | - * @param mixed $value |
|
1359 | + * @param string $value |
|
1360 | 1360 | */ |
1361 | 1361 | public function setExtraParam( $key, $value ) { |
1362 | 1362 | $this->extraParams[$key] = $value; |
@@ -1275,7 +1275,7 @@ discard block |
||
1275 | 1275 | * @param string|null $wikiId Id (as used by WikiMap) of the wiki to generate links to. |
1276 | 1276 | * For use with external changes. |
1277 | 1277 | * |
1278 | - * @return mixed|string |
|
1278 | + * @return string |
|
1279 | 1279 | */ |
1280 | 1280 | public static function formatComment( |
1281 | 1281 | $comment, $title = null, $local = false, $wikiId = null |
@@ -1803,7 +1803,7 @@ discard block |
||
1803 | 1803 | * Split a link trail, return the "inside" portion and the remainder of the trail |
1804 | 1804 | * as a two-element array |
1805 | 1805 | * @param string $trail |
1806 | - * @return array |
|
1806 | + * @return string[] |
|
1807 | 1807 | */ |
1808 | 1808 | static function splitTrail( $trail ) { |
1809 | 1809 | global $wgContLang; |