From 70c5a1e43542348c3270da75eb462bdcc2f7ffcc Mon Sep 17 00:00:00 2001 From: Reedy Date: Fri, 15 May 2020 21:59:36 +0100 Subject: [PATCH] Fix return type of callable Change-Id: I7e594a9f9f6f9d4737fd880e449c43b9b2cf24fb --- includes/CommentParser.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/CommentParser.php b/includes/CommentParser.php index 5adc759c9..5335b66e6 100644 --- a/includes/CommentParser.php +++ b/includes/CommentParser.php @@ -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(