mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-28 02:00:57 +00:00
Fix return type of callable
Change-Id: I7e594a9f9f6f9d4737fd880e449c43b9b2cf24fb
This commit is contained in:
parent
21a892d5e7
commit
70c5a1e435
|
@ -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