From 7e5826a419d77b9596fa792528bbe68bdea2a1fe Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 30 Oct 2023 10:43:58 +0100 Subject: [locationinfo] Restore PHP7.0 compat --- modules-available/locationinfo/inc/icalcoursebackend.inc.php | 4 ++-- modules-available/locationinfo/inc/icalparser.inc.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules-available/locationinfo/inc/icalcoursebackend.inc.php b/modules-available/locationinfo/inc/icalcoursebackend.inc.php index 44691bb4..166c55ba 100644 --- a/modules-available/locationinfo/inc/icalcoursebackend.inc.php +++ b/modules-available/locationinfo/inc/icalcoursebackend.inc.php @@ -48,7 +48,7 @@ abstract class ICalCourseBackend extends CourseBackend * @param callable $errorFunc * @return ICalEvent[]|null all events for this room in the range -7 days to +7 days, or NULL on error */ - protected function downloadIcal(string $roomId): ?array + protected function downloadIcal(string $roomId) { if (!$this->isOK()) return null; @@ -150,4 +150,4 @@ abstract class ICalCourseBackend extends CourseBackend } } -} \ No newline at end of file +} diff --git a/modules-available/locationinfo/inc/icalparser.inc.php b/modules-available/locationinfo/inc/icalparser.inc.php index 69ff84d0..ed38d017 100644 --- a/modules-available/locationinfo/inc/icalparser.inc.php +++ b/modules-available/locationinfo/inc/icalparser.inc.php @@ -903,7 +903,7 @@ class ICalParser * @param string $text * @return ?array */ - protected function keyValueFromString(string $text): ?array + protected function keyValueFromString(string $text) { $text = htmlspecialchars($text, ENT_NOQUOTES, 'UTF-8'); @@ -1689,7 +1689,7 @@ class ICalParser * @param boolean $ignoreUtc * @return string */ - public function calendarTimeZone(bool $ignoreUtc = false): ?string + public function calendarTimeZone(bool $ignoreUtc = false) { if (isset($this->cal['VCALENDAR']['X-WR-TIMEZONE'])) { $timeZone = $this->cal['VCALENDAR']['X-WR-TIMEZONE']; -- cgit v1.2.3-55-g7522