summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2023-10-30 10:43:58 +0100
committerSimon Rettberg2023-10-30 10:43:58 +0100
commit7e5826a419d77b9596fa792528bbe68bdea2a1fe (patch)
tree4815683015a114ce514f5447f9e5a292eb3bb6ed
parent[sysconfig] Add missing else (diff)
downloadslx-admin-7e5826a419d77b9596fa792528bbe68bdea2a1fe.tar.gz
slx-admin-7e5826a419d77b9596fa792528bbe68bdea2a1fe.tar.xz
slx-admin-7e5826a419d77b9596fa792528bbe68bdea2a1fe.zip
[locationinfo] Restore PHP7.0 compat
-rw-r--r--modules-available/locationinfo/inc/icalcoursebackend.inc.php4
-rw-r--r--modules-available/locationinfo/inc/icalparser.inc.php4
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'];