@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | * |
168 | 168 | * @param IDatabase $dbw |
169 | 169 | * @param integer $pageId |
170 | - * @return ScopedCallback|null Returns null on failure |
|
170 | + * @return ScopedCallback Returns null on failure |
|
171 | 171 | * @throws RuntimeException |
172 | 172 | * @since 1.27 |
173 | 173 | */ |
@@ -935,7 +935,7 @@ discard block |
||
935 | 935 | |
936 | 936 | /** |
937 | 937 | * @since 1.28 |
938 | - * @return null|Revision |
|
938 | + * @return Revision |
|
939 | 939 | */ |
940 | 940 | public function getRevision() { |
941 | 941 | return $this->mRevision; |
@@ -381,7 +381,7 @@ discard block |
||
381 | 381 | * Get all styles for a given context. |
382 | 382 | * |
383 | 383 | * @param ResourceLoaderContext $context |
384 | - * @return array CSS code for $context as an associative array mapping media type to CSS text. |
|
384 | + * @return string CSS code for $context as an associative array mapping media type to CSS text. |
|
385 | 385 | */ |
386 | 386 | public function getStyles( ResourceLoaderContext $context ) { |
387 | 387 | $styles = $this->readStyleFiles( |
@@ -631,7 +631,7 @@ discard block |
||
631 | 631 | * @param array $list List of file paths in any combination of index/path |
632 | 632 | * or path/options pairs |
633 | 633 | * @param string $option Option name |
634 | - * @param mixed $default Default value if the option isn't set |
|
634 | + * @param string $default Default value if the option isn't set |
|
635 | 635 | * @return array List of file paths, collated by $option |
636 | 636 | */ |
637 | 637 | protected static function collateFilePathListByOption( array $list, $option, $default ) { |
@@ -1007,6 +1007,7 @@ discard block |
||
1007 | 1007 | * the BOM character is not valid in the middle of a string. |
1008 | 1008 | * We already assume UTF-8 everywhere, so this should be safe. |
1009 | 1009 | * |
1010 | + * @param string $input |
|
1010 | 1011 | * @return string input minus the intial BOM char |
1011 | 1012 | */ |
1012 | 1013 | protected function stripBom( $input ) { |