mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-12 09:58:17 +00:00
Merge "Fix return type of callable"
This commit is contained in:
commit
a6fcb965ea
|
@ -324,7 +324,7 @@ class CommentParser {
|
|||
* @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' ]
|
||||
* @return function Parser function
|
||||
* @return callable Parser function
|
||||
*/
|
||||
private function getTimestampParser(
|
||||
string $format, ?string $digits, string $localTimezone, array $tzAbbrs
|
||||
|
@ -508,7 +508,7 @@ class CommentParser {
|
|||
*
|
||||
* This calls getTimestampParser() with predefined data for the current wiki.
|
||||
*
|
||||
* @return function Parser function
|
||||
* @return callable Parser function
|
||||
*/
|
||||
private function getLocalTimestampParser() : callable {
|
||||
return $this->getTimestampParser(
|
||||
|
|
Loading…
Reference in a new issue