diff --git a/includes/CommentParser.php b/includes/CommentParser.php index 9ed88690e..b7be3f8ff 100644 --- a/includes/CommentParser.php +++ b/includes/CommentParser.php @@ -270,7 +270,7 @@ class CommentParser { * of matching the regexp returned by getTimestampRegexp() * * @param string $format Date format, as used by MediaWiki - * @param array|null $digits Localised digits from 0 to 9, e.g. `[ '0', '1', ..., '9' ]` + * @param string[]|null $digits Localised digits from 0 to 9, e.g. `[ '0', '1', ..., '9' ]` * @param string $localTimezone Local timezone IANA name, e.g. `America/New_York` * @param array $tzAbbrs Map of localised timezone abbreviations to IANA abbreviations * for the local timezone, e.g. [ 'EDT' => 'EDT', 'EST' => 'EST' ] diff --git a/modules/Parser.js b/modules/Parser.js index b76b1a72b..99af45036 100644 --- a/modules/Parser.js +++ b/modules/Parser.js @@ -187,7 +187,7 @@ Parser.prototype.getTimestampRegexp = function ( format, digitsRegexp, tzAbbrs ) * * @private * @param {string} format Date format, as used by MediaWiki - * @param {array|null} digits Localised digits from 0 to 9, e.g. `[ '0', '1', ..., '9' ]` + * @param {string[]|null} digits Localised digits from 0 to 9, e.g. `[ '0', '1', ..., '9' ]` * @param {string} localTimezone Local timezone IANA name, e.g. `America/New_York` * @param {Object} tzAbbrs Map of localised timezone abbreviations to IANA abbreviations * for the local timezone, e.g. `{EDT: "EDT", EST: "EST"}`