Skip to content

Commit

Permalink
fixup! fix: iTipBroker message generation and testing
Browse files Browse the repository at this point in the history
Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
  • Loading branch information
SebastianKrupinski committed Feb 17, 2025
1 parent c8d0c4d commit 3962474
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/dav/lib/CalDAV/TipBroker.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ protected function parseEventForOrganizer(VCalendar $calendar, array $eventInfo,
}

$messages = array_merge($messages, match ($action) {
'ALTERED' => $this->instanceCreatedOrModifiedByOrganizer($mutatedInstance, $originalInstance, $template),
'ALTERED' => $this->instanceCreatedOrModifiedByOrganizer($mutatedInstance, $template, $originalInstance),
'CANCELLED' => $this->instanceCancelledByOrganizer($mutatedInstance, $template),
default => [],

Check failure on line 119 in apps/dav/lib/CalDAV/TipBroker.php

View workflow job for this annotation

GitHub Actions / static-code-analysis

TypeDoesNotContainType

apps/dav/lib/CalDAV/TipBroker.php:119:16: TypeDoesNotContainType: Type 'CANCELLED' for $action is always !=string(CANCELLED) (see https://psalm.dev/056)
});
Expand All @@ -123,7 +123,7 @@ protected function parseEventForOrganizer(VCalendar $calendar, array $eventInfo,
return $messages;
}

protected function instanceCreatedOrModifiedByOrganizer(Component $mutated, ?Component $original = null, VCalendar $template): array {
protected function instanceCreatedOrModifiedByOrganizer(Component $mutated, VCalendar $template, ?Component $original = null): array {

$component = clone $mutated;
$componentDelta = $this->componentDelta($mutated, $original);
Expand Down

0 comments on commit 3962474

Please sign in to comment.