Fix return type of callable

Change-Id: I7e594a9f9f6f9d4737fd880e449c43b9b2cf24fb
This commit is contained in:
Reedy 2020-05-15 21:59:36 +01:00
parent 21a892d5e7
commit 70c5a1e435

View file

@ -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(