@@ -1314,7 +1314,7 @@ discard block |
||
| 1314 | 1314 | * (lists are truncated to 10000 item with no way to page), and is just a performance risk. |
| 1315 | 1315 | * |
| 1316 | 1316 | * @param string $container Resolved Swift container |
| 1317 | - * @param array $readGrps List of the possible criteria for a request to have |
|
| 1317 | + * @param string[] $readGrps List of the possible criteria for a request to have |
|
| 1318 | 1318 | * access to read a container. Each item is one of the following formats: |
| 1319 | 1319 | * - account:user : Grants access if the request is by the given user |
| 1320 | 1320 | * - ".r:<regex>" : Grants access if the request is from a referrer host that |
@@ -1322,7 +1322,7 @@ discard block |
||
| 1322 | 1322 | * Setting this to '*' effectively makes a container public. |
| 1323 | 1323 | * -".rlistings:<regex>" : Grants access if the request is from a referrer host that |
| 1324 | 1324 | * matches the expression and the request is for a listing. |
| 1325 | - * @param array $writeGrps A list of the possible criteria for a request to have |
|
| 1325 | + * @param string[] $writeGrps A list of the possible criteria for a request to have |
|
| 1326 | 1326 | * access to write to a container. Each item is of the following format: |
| 1327 | 1327 | * - account:user : Grants access if the request is by the given user |
| 1328 | 1328 | * @return Status |
@@ -1705,7 +1705,7 @@ discard block |
||
| 1705 | 1705 | * @param array $creds From getAuthentication() |
| 1706 | 1706 | * @param string $container |
| 1707 | 1707 | * @param string $object |
| 1708 | - * @return array |
|
| 1708 | + * @return string |
|
| 1709 | 1709 | */ |
| 1710 | 1710 | protected function storageUrl( array $creds, $container = null, $object = null ) { |
| 1711 | 1711 | $parts = [ $creds['storage_url'] ]; |
@@ -191,7 +191,7 @@ discard block |
||
| 191 | 191 | |
| 192 | 192 | /** |
| 193 | 193 | * Fields in the image table |
| 194 | - * @return array |
|
| 194 | + * @return string[] |
|
| 195 | 195 | */ |
| 196 | 196 | static function selectFields() { |
| 197 | 197 | return [ |
@@ -1114,11 +1114,11 @@ discard block |
||
| 1114 | 1114 | |
| 1115 | 1115 | /** |
| 1116 | 1116 | * Upload a file and record it in the DB |
| 1117 | - * @param string|FSFile $src Source storage path, virtual URL, or filesystem path |
|
| 1117 | + * @param string $src Source storage path, virtual URL, or filesystem path |
|
| 1118 | 1118 | * @param string $comment Upload description |
| 1119 | 1119 | * @param string $pageText Text to use for the new description page, |
| 1120 | 1120 | * if a new description page is created |
| 1121 | - * @param int|bool $flags Flags for publish() |
|
| 1121 | + * @param integer $flags Flags for publish() |
|
| 1122 | 1122 | * @param array|bool $props File properties, if known. This can be used to |
| 1123 | 1123 | * reduce the upload time when uploading virtual URLs for which the file |
| 1124 | 1124 | * info is already known |
@@ -1815,7 +1815,7 @@ discard block |
||
| 1815 | 1815 | * it skips the parser cache. |
| 1816 | 1816 | * |
| 1817 | 1817 | * @param Language $lang What language to get description in (Optional) |
| 1818 | - * @return bool|mixed |
|
| 1818 | + * @return false|string |
|
| 1819 | 1819 | */ |
| 1820 | 1820 | function getDescriptionText( $lang = null ) { |
| 1821 | 1821 | $revision = Revision::newFromTitle( $this->title, false, Revision::READ_NORMAL ); |
@@ -1859,7 +1859,7 @@ discard block |
||
| 1859 | 1859 | } |
| 1860 | 1860 | |
| 1861 | 1861 | /** |
| 1862 | - * @return bool|string |
|
| 1862 | + * @return string|false |
|
| 1863 | 1863 | */ |
| 1864 | 1864 | public function getDescriptionTouched() { |
| 1865 | 1865 | // The DB lookup might return false, e.g. if the file was just deleted, or the shared DB repo |
@@ -318,6 +318,9 @@ discard block |
||
| 318 | 318 | return true; |
| 319 | 319 | } |
| 320 | 320 | |
| 321 | + /** |
|
| 322 | + * @param HTMLFormField[] $alldata |
|
| 323 | + */ |
|
| 321 | 324 | function filter( $value, $alldata ) { |
| 322 | 325 | if ( isset( $this->mFilterCallback ) ) { |
| 323 | 326 | $value = call_user_func( $this->mFilterCallback, $value, $alldata, $this->mParent ); |
@@ -625,6 +628,7 @@ discard block |
||
| 625 | 628 | |
| 626 | 629 | /** |
| 627 | 630 | * Get a FieldLayout (or subclass thereof) to wrap this field in when using OOUI output. |
| 631 | + * @param OOUI\Widget $inputField |
|
| 628 | 632 | * @return OOUI\FieldLayout|OOUI\ActionFieldLayout |
| 629 | 633 | */ |
| 630 | 634 | protected function getFieldLayoutOOUI( $inputField, $config ) { |
@@ -798,7 +802,7 @@ discard block |
||
| 798 | 802 | * @since 1.20 |
| 799 | 803 | * |
| 800 | 804 | * @param string $value The value of the input |
| 801 | - * @return array array( $errors, $errorClass ) |
|
| 805 | + * @return string[] array( $errors, $errorClass ) |
|
| 802 | 806 | */ |
| 803 | 807 | public function getErrorsAndErrorClass( $value ) { |
| 804 | 808 | $errors = $this->validate( $value, $this->mParent->mFieldData ); |
@@ -886,6 +890,9 @@ discard block |
||
| 886 | 890 | return $html; |
| 887 | 891 | } |
| 888 | 892 | |
| 893 | + /** |
|
| 894 | + * @return string |
|
| 895 | + */ |
|
| 889 | 896 | function getDefault() { |
| 890 | 897 | if ( isset( $this->mDefault ) ) { |
| 891 | 898 | return $this->mDefault; |
@@ -1059,7 +1066,7 @@ discard block |
||
| 1059 | 1066 | /** |
| 1060 | 1067 | * Formats one or more errors as accepted by field validation-callback. |
| 1061 | 1068 | * |
| 1062 | - * @param string|Message|array $errors Array of strings or Message instances |
|
| 1069 | + * @param string $errors Array of strings or Message instances |
|
| 1063 | 1070 | * @return string HTML |
| 1064 | 1071 | * @since 1.18 |
| 1065 | 1072 | */ |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | /** |
| 81 | 81 | * Get the final extension of the thumbnail. |
| 82 | 82 | * Returns false for scripted transformations. |
| 83 | - * @return string|bool |
|
| 83 | + * @return string|false |
|
| 84 | 84 | */ |
| 85 | 85 | public function getExtension() { |
| 86 | 86 | return $this->path ? FileBackend::extensionFromPath( $this->path ) : false; |
@@ -214,7 +214,7 @@ discard block |
||
| 214 | 214 | * |
| 215 | 215 | * @deprecated since 1.26, use streamFileWithStatus |
| 216 | 216 | * @param array $headers Additional HTTP headers to send on success |
| 217 | - * @return bool Success |
|
| 217 | + * @return boolean|null Success |
|
| 218 | 218 | */ |
| 219 | 219 | public function streamFile( $headers = [] ) { |
| 220 | 220 | $this->streamFileWithStatus( $headers )->isOK(); |
@@ -445,6 +445,9 @@ discard block |
||
| 445 | 445 | /** @var string Plain text formatted version of the error */ |
| 446 | 446 | private $textMsg; |
| 447 | 447 | |
| 448 | + /** |
|
| 449 | + * @param string $msg |
|
| 450 | + */ |
|
| 448 | 451 | function __construct( $msg, $width, $height /*, ... */ ) { |
| 449 | 452 | $args = array_slice( func_get_args(), 3 ); |
| 450 | 453 | $htmlArgs = array_map( 'htmlspecialchars', $args ); |
@@ -979,7 +979,7 @@ discard block |
||
| 979 | 979 | /** |
| 980 | 980 | * Replace the subtitle with $str |
| 981 | 981 | * |
| 982 | - * @param string|Message $str New value of the subtitle. String should be safe HTML. |
|
| 982 | + * @param string $str New value of the subtitle. String should be safe HTML. |
|
| 983 | 983 | */ |
| 984 | 984 | public function setSubtitle( $str ) { |
| 985 | 985 | $this->clearSubtitle(); |
@@ -1597,7 +1597,7 @@ discard block |
||
| 1597 | 1597 | /** |
| 1598 | 1598 | * Set the displayed file version |
| 1599 | 1599 | * |
| 1600 | - * @param File|bool $file |
|
| 1600 | + * @param File $file |
|
| 1601 | 1601 | * @return mixed Previous value |
| 1602 | 1602 | */ |
| 1603 | 1603 | public function setFileVersion( $file ) { |
@@ -1943,7 +1943,7 @@ discard block |
||
| 1943 | 1943 | /** |
| 1944 | 1944 | * Get the list of cookies that will influence on the cache |
| 1945 | 1945 | * |
| 1946 | - * @return array |
|
| 1946 | + * @return string[] |
|
| 1947 | 1947 | */ |
| 1948 | 1948 | function getCacheVaryCookies() { |
| 1949 | 1949 | static $cookies; |
@@ -2322,7 +2322,7 @@ discard block |
||
| 2322 | 2322 | * indexing, clear the current text and redirect, set the page's title |
| 2323 | 2323 | * and optionally an custom HTML title (content of the "<title>" tag). |
| 2324 | 2324 | * |
| 2325 | - * @param string|Message $pageTitle Will be passed directly to setPageTitle() |
|
| 2325 | + * @param Message $pageTitle Will be passed directly to setPageTitle() |
|
| 2326 | 2326 | * @param string|Message $htmlTitle Will be passed directly to setHTMLTitle(); |
| 2327 | 2327 | * optional, if not passed the "<title>" attribute will be |
| 2328 | 2328 | * based on $pageTitle |
@@ -2348,8 +2348,8 @@ discard block |
||
| 2348 | 2348 | * showErrorPage( 'titlemsg', $messageObject ); |
| 2349 | 2349 | * showErrorPage( $titleMessageObject, $messageObject ); |
| 2350 | 2350 | * |
| 2351 | - * @param string|Message $title Message key (string) for page title, or a Message object |
|
| 2352 | - * @param string|Message $msg Message key (string) for page text, or a Message object |
|
| 2351 | + * @param string $title Message key (string) for page title, or a Message object |
|
| 2352 | + * @param string $msg Message key (string) for page text, or a Message object |
|
| 2353 | 2353 | * @param array $params Message parameters; ignored if $msg is a Message object |
| 2354 | 2354 | */ |
| 2355 | 2355 | public function showErrorPage( $title, $msg, $params = [] ) { |
@@ -2545,6 +2545,9 @@ discard block |
||
| 2545 | 2545 | } |
| 2546 | 2546 | } |
| 2547 | 2547 | |
| 2548 | + /** |
|
| 2549 | + * @param string $message |
|
| 2550 | + */ |
|
| 2548 | 2551 | public function showFatalError( $message ) { |
| 2549 | 2552 | $this->prepareErrorPage( $this->msg( 'internalerror' ) ); |
| 2550 | 2553 | |
@@ -2563,6 +2566,9 @@ discard block |
||
| 2563 | 2566 | $this->showFatalError( $this->msg( 'filerenameerror', $old, $new )->text() ); |
| 2564 | 2567 | } |
| 2565 | 2568 | |
| 2569 | + /** |
|
| 2570 | + * @param string $name |
|
| 2571 | + */ |
|
| 2566 | 2572 | public function showFileDeleteError( $name ) { |
| 2567 | 2573 | $this->showFatalError( $this->msg( 'filedeleteerror', $name )->text() ); |
| 2568 | 2574 | } |
@@ -2589,7 +2595,7 @@ discard block |
||
| 2589 | 2595 | * Add a "return to" link pointing to a specified title, |
| 2590 | 2596 | * or the title indicated in the request, or else the main page |
| 2591 | 2597 | * |
| 2592 | - * @param mixed $unused |
|
| 2598 | + * @param null|boolean $unused |
|
| 2593 | 2599 | * @param Title|string $returnto Title or String to return to |
| 2594 | 2600 | * @param string $returntoquery Query string for the return to link |
| 2595 | 2601 | */ |
@@ -3844,7 +3850,7 @@ discard block |
||
| 3844 | 3850 | * Caller is responsible for ensuring the file exists. Emits a PHP warning otherwise. |
| 3845 | 3851 | * |
| 3846 | 3852 | * @since 1.27 |
| 3847 | - * @param string $remotePath URL path prefix that points to $localPath |
|
| 3853 | + * @param string $remotePathPrefix URL path prefix that points to $localPath |
|
| 3848 | 3854 | * @param string $localPath File directory exposed at $remotePath |
| 3849 | 3855 | * @param string $file Path to target file relative to $localPath |
| 3850 | 3856 | * @return string URL |
@@ -257,7 +257,7 @@ discard block |
||
| 257 | 257 | * Return the list of revision fields that should be selected to create |
| 258 | 258 | * a new page. |
| 259 | 259 | * |
| 260 | - * @return array |
|
| 260 | + * @return string[] |
|
| 261 | 261 | */ |
| 262 | 262 | public static function selectFields() { |
| 263 | 263 | global $wgContentHandlerUseDB, $wgPageLanguageUseDB; |
@@ -1142,7 +1142,7 @@ discard block |
||
| 1142 | 1142 | * @param IDatabase $dbw |
| 1143 | 1143 | * @param int|null $pageId Custom page ID that will be used for the insert statement |
| 1144 | 1144 | * |
| 1145 | - * @return bool|int The newly created page_id key; false if the title already existed |
|
| 1145 | + * @return integer The newly created page_id key; false if the title already existed |
|
| 1146 | 1146 | */ |
| 1147 | 1147 | public function insertOn( $dbw, $pageId = null ) { |
| 1148 | 1148 | $pageIdForInsert = $pageId ?: $dbw->nextSequenceValue( 'page_page_id_seq' ); |
@@ -1487,7 +1487,7 @@ discard block |
||
| 1487 | 1487 | * error will be returned. These two conditions are also possible with |
| 1488 | 1488 | * auto-detection due to MediaWiki's performance-optimised locking strategy. |
| 1489 | 1489 | * |
| 1490 | - * @param bool|int $baseRevId The revision ID this edit was based off, if any. |
|
| 1490 | + * @param boolean $baseRevId The revision ID this edit was based off, if any. |
|
| 1491 | 1491 | * This is not the parent revision ID, rather the revision ID for older |
| 1492 | 1492 | * content used as the source for a rollback, for example. |
| 1493 | 1493 | * @param User $user The user doing the edit |
@@ -3360,7 +3360,7 @@ discard block |
||
| 3360 | 3360 | * Returns a list of categories this page is a member of. |
| 3361 | 3361 | * Results will include hidden categories |
| 3362 | 3362 | * |
| 3363 | - * @return TitleArray |
|
| 3363 | + * @return TitleArrayFromResult|null |
|
| 3364 | 3364 | */ |
| 3365 | 3365 | public function getCategories() { |
| 3366 | 3366 | $id = $this->getId(); |
@@ -3435,7 +3435,7 @@ discard block |
||
| 3435 | 3435 | * Auto-generates a deletion reason |
| 3436 | 3436 | * |
| 3437 | 3437 | * @param bool &$hasHistory Whether the page has a history |
| 3438 | - * @return string|bool String containing deletion reason or empty string, or boolean false |
|
| 3438 | + * @return false|string String containing deletion reason or empty string, or boolean false |
|
| 3439 | 3439 | * if no revision occurred |
| 3440 | 3440 | */ |
| 3441 | 3441 | public function getAutoDeleteReason( &$hasHistory ) { |
@@ -615,7 +615,7 @@ discard block |
||
| 615 | 615 | * @since 1.25 |
| 616 | 616 | * |
| 617 | 617 | * @param string $text Text extension wants to have parsed |
| 618 | - * @param bool|PPFrame $frame The frame to use for expanding any template variables |
|
| 618 | + * @param PPFrame $frame The frame to use for expanding any template variables |
|
| 619 | 619 | * @return string Fully parsed HTML |
| 620 | 620 | */ |
| 621 | 621 | public function recursiveTagParseFully( $text, $frame = false ) { |
@@ -633,7 +633,7 @@ discard block |
||
| 633 | 633 | * @param ParserOptions $options |
| 634 | 634 | * @param int|null $revid |
| 635 | 635 | * @param bool|PPFrame $frame |
| 636 | - * @return mixed|string |
|
| 636 | + * @return string |
|
| 637 | 637 | */ |
| 638 | 638 | public function preprocess( $text, Title $title = null, |
| 639 | 639 | ParserOptions $options, $revid = null, $frame = false |
@@ -1969,6 +1969,10 @@ discard block |
||
| 1969 | 1969 | return $ret; |
| 1970 | 1970 | } |
| 1971 | 1971 | |
| 1972 | + /** |
|
| 1973 | + * @param string $component |
|
| 1974 | + * @param string $unsafe |
|
| 1975 | + */ |
|
| 1972 | 1976 | private static function normalizeUrlComponent( $component, $unsafe ) { |
| 1973 | 1977 | $callback = function ( $matches ) use ( $unsafe ) { |
| 1974 | 1978 | $char = urldecode( $matches[0] ); |
@@ -2420,6 +2424,7 @@ discard block |
||
| 2420 | 2424 | * |
| 2421 | 2425 | * @param string $target The source of the link |
| 2422 | 2426 | * @param string &$text The link text, modified as necessary |
| 2427 | + * @param string $text |
|
| 2423 | 2428 | * @return string The full name of the link |
| 2424 | 2429 | * @private |
| 2425 | 2430 | */ |
@@ -2445,7 +2450,7 @@ discard block |
||
| 2445 | 2450 | * @private |
| 2446 | 2451 | * |
| 2447 | 2452 | * @param int $index |
| 2448 | - * @param bool|PPFrame $frame |
|
| 2453 | + * @param PPFrame $frame |
|
| 2449 | 2454 | * |
| 2450 | 2455 | * @throws MWException |
| 2451 | 2456 | * @return string |
@@ -2842,7 +2847,7 @@ discard block |
||
| 2842 | 2847 | * |
| 2843 | 2848 | * @param string $s |
| 2844 | 2849 | * |
| 2845 | - * @return array |
|
| 2850 | + * @return string[] |
|
| 2846 | 2851 | */ |
| 2847 | 2852 | public static function splitWhitespace( $s ) { |
| 2848 | 2853 | $ltrimmed = ltrim( $s ); |
@@ -2950,7 +2955,7 @@ discard block |
||
| 2950 | 2955 | * 'expansion-depth-exceeded' (corresponding messages: |
| 2951 | 2956 | * 'expansion-depth-exceeded-warning', |
| 2952 | 2957 | * 'expansion-depth-exceeded-category') |
| 2953 | - * @param string|int|null $current Current value |
|
| 2958 | + * @param integer $current Current value |
|
| 2954 | 2959 | * @param string|int|null $max Maximum allowed, when an explicit limit has been |
| 2955 | 2960 | * exceeded, provide the values (optional) |
| 2956 | 2961 | */ |
@@ -3954,7 +3959,7 @@ discard block |
||
| 3954 | 3959 | * @param string $text |
| 3955 | 3960 | * @param string $origText Original, untouched wikitext |
| 3956 | 3961 | * @param bool $isMain |
| 3957 | - * @return mixed|string |
|
| 3962 | + * @return string |
|
| 3958 | 3963 | * @private |
| 3959 | 3964 | */ |
| 3960 | 3965 | public function formatHeadings( $text, $origText, $isMain = true ) { |
@@ -4525,7 +4530,7 @@ discard block |
||
| 4525 | 4530 | * Check that the user's signature contains no bad XML |
| 4526 | 4531 | * |
| 4527 | 4532 | * @param string $text |
| 4528 | - * @return string|bool An expanded string, or false if invalid. |
|
| 4533 | + * @return string|false An expanded string, or false if invalid. |
|
| 4529 | 4534 | */ |
| 4530 | 4535 | public function validateSig( $text ) { |
| 4531 | 4536 | return Xml::isWellFormedXmlFragment( $text ) ? $text : false; |
@@ -5067,7 +5072,7 @@ discard block |
||
| 5067 | 5072 | * |
| 5068 | 5073 | * @param Title $title |
| 5069 | 5074 | * @param string $options |
| 5070 | - * @param LinkHolderArray|bool $holders |
|
| 5075 | + * @param LinkHolderArray $holders |
|
| 5071 | 5076 | * @return string HTML |
| 5072 | 5077 | */ |
| 5073 | 5078 | public function makeImage( $title, $options, $holders = false ) { |
@@ -5283,7 +5288,7 @@ discard block |
||
| 5283 | 5288 | /** |
| 5284 | 5289 | * @param string $caption |
| 5285 | 5290 | * @param LinkHolderArray|bool $holders |
| 5286 | - * @return mixed|string |
|
| 5291 | + * @return string |
|
| 5287 | 5292 | */ |
| 5288 | 5293 | protected function stripAltText( $caption, $holders ) { |
| 5289 | 5294 | # Strip bad stuff out of the title (tooltip). We can't just use |
@@ -5686,7 +5691,7 @@ discard block |
||
| 5686 | 5691 | * Accessor for $mDefaultSort |
| 5687 | 5692 | * Unlike getDefaultSort(), will return false if none is set |
| 5688 | 5693 | * |
| 5689 | - * @return string|bool |
|
| 5694 | + * @return false|string |
|
| 5690 | 5695 | */ |
| 5691 | 5696 | public function getCustomDefaultSort() { |
| 5692 | 5697 | return $this->mDefaultSort; |
@@ -688,6 +688,9 @@ discard block |
||
| 688 | 688 | return $rootNode; |
| 689 | 689 | } |
| 690 | 690 | |
| 691 | + /** |
|
| 692 | + * @param string $text |
|
| 693 | + */ |
|
| 691 | 694 | private static function addLiteral( array &$accum, $text ) { |
| 692 | 695 | $n = count( $accum ); |
| 693 | 696 | if ( $n && is_string( $accum[$n - 1] ) ) { |
@@ -1133,7 +1136,6 @@ discard block |
||
| 1133 | 1136 | /** |
| 1134 | 1137 | * @param string $sep |
| 1135 | 1138 | * @param int $flags |
| 1136 | - * @param string|PPNode $args,... |
|
| 1137 | 1139 | * @return string |
| 1138 | 1140 | */ |
| 1139 | 1141 | public function implodeWithFlags( $sep, $flags /*, ... */ ) { |
@@ -1164,7 +1166,6 @@ discard block |
||
| 1164 | 1166 | * Implode with no flags specified |
| 1165 | 1167 | * This previously called implodeWithFlags but has now been inlined to reduce stack depth |
| 1166 | 1168 | * @param string $sep |
| 1167 | - * @param string|PPNode $args,... |
|
| 1168 | 1169 | * @return string |
| 1169 | 1170 | */ |
| 1170 | 1171 | public function implode( $sep /*, ... */ ) { |
@@ -1196,7 +1197,6 @@ discard block |
||
| 1196 | 1197 | * with implode() |
| 1197 | 1198 | * |
| 1198 | 1199 | * @param string $sep |
| 1199 | - * @param string|PPNode $args,... |
|
| 1200 | 1200 | * @return PPNode_Hash_Array |
| 1201 | 1201 | */ |
| 1202 | 1202 | public function virtualImplode( $sep /*, ... */ ) { |
@@ -1229,7 +1229,6 @@ discard block |
||
| 1229 | 1229 | * @param string $start |
| 1230 | 1230 | * @param string $sep |
| 1231 | 1231 | * @param string $end |
| 1232 | - * @param string|PPNode $args,... |
|
| 1233 | 1232 | * @return PPNode_Hash_Array |
| 1234 | 1233 | */ |
| 1235 | 1234 | public function virtualBracketedImplode( $start, $sep, $end /*, ... */ ) { |
@@ -1392,7 +1391,7 @@ discard block |
||
| 1392 | 1391 | |
| 1393 | 1392 | /** |
| 1394 | 1393 | * @param Preprocessor $preprocessor |
| 1395 | - * @param bool|PPFrame $parent |
|
| 1394 | + * @param PPFrame_Hash $parent |
|
| 1396 | 1395 | * @param array $numberedArgs |
| 1397 | 1396 | * @param array $namedArgs |
| 1398 | 1397 | * @param bool|Title $title |
@@ -1572,6 +1571,9 @@ discard block |
||
| 1572 | 1571 | |
| 1573 | 1572 | public $args; |
| 1574 | 1573 | |
| 1574 | + /** |
|
| 1575 | + * @param Preprocessor_Hash $preprocessor |
|
| 1576 | + */ |
|
| 1575 | 1577 | public function __construct( $preprocessor, $args ) { |
| 1576 | 1578 | parent::__construct( $preprocessor ); |
| 1577 | 1579 | $this->args = $args; |
@@ -205,7 +205,7 @@ |
||
| 205 | 205 | * MUST return either an only= URL or a non-load.php URL. |
| 206 | 206 | * |
| 207 | 207 | * @param ResourceLoaderContext $context |
| 208 | - * @return array Array of URLs |
|
| 208 | + * @return string[] Array of URLs |
|
| 209 | 209 | */ |
| 210 | 210 | public function getScriptURLsForDebug( ResourceLoaderContext $context ) { |
| 211 | 211 | $resourceLoader = $context->getResourceLoader(); |