summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2023-01-26 11:24:53 +0100
committerblizzz (Rebase PR Action) <blizzz@users.noreply.github.com>2023-02-07 18:06:03 +0000
commitbefee5df6de11361b9502a28b7fedf7ab68ec015 (patch)
tree4d64375f366e1936ef85e937bbb2251cf9634731
parentdc737047ce1229a076b2e3e9ef7d1f96f74d06e6 (diff)
downloadnextcloud-server-befee5df6de11361b9502a28b7fedf7ab68ec015.tar.gz
nextcloud-server-befee5df6de11361b9502a28b7fedf7ab68ec015.zip
fix(caldav): Fix wrong Psalm report for nullable calendar data
> Docblock-defined type Sabre\VObject\Component\VCalendar for $vcalendar is never falsy ^ is a lie Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
-rw-r--r--apps/dav/lib/CalDAV/Reminder/ReminderService.php1
1 files changed, 0 insertions, 1 deletions
diff --git a/apps/dav/lib/CalDAV/Reminder/ReminderService.php b/apps/dav/lib/CalDAV/Reminder/ReminderService.php
index 2911e502049..e0701c75040 100644
--- a/apps/dav/lib/CalDAV/Reminder/ReminderService.php
+++ b/apps/dav/lib/CalDAV/Reminder/ReminderService.php
@@ -201,7 +201,6 @@ class ReminderService {
return;
}
- /** @var VObject\Component\VCalendar $vcalendar */
$vcalendar = $this->parseCalendarData($calendarData);
if (!$vcalendar) {
return;