Skip to content

Commit

Permalink
fix(caldav): Fix wrong Psalm report for nullable calendar data
Browse files Browse the repository at this point in the history
> Docblock-defined type Sabre\VObject\Component\VCalendar for $vcalendar is never falsy

^ is a lie

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
  • Loading branch information
ChristophWurst authored and backportbot-nextcloud[bot] committed Jan 27, 2023
1 parent 8f3bdbd commit f31fc27
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion apps/dav/lib/CalDAV/Reminder/ReminderService.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,6 @@ public function onCalendarObjectCreate(array $objectData):void {
return;
}

/** @var VObject\Component\VCalendar $vcalendar */
$vcalendar = $this->parseCalendarData($calendarData);
if (!$vcalendar) {
return;
Expand Down

0 comments on commit f31fc27

Please sign in to comment.