Skip to content

Commit

Permalink
Tell Phan to ignore faulty VObject php-doc, should be reverted when w…
Browse files Browse the repository at this point in the history
…e update VObject

Signed-off-by: Georg Ehrke <developer@georgehrke.com>
  • Loading branch information
georgehrke committed Nov 7, 2018
1 parent aea8fa9 commit 31ac4b6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/dav/lib/BackgroundJob/RefreshWebcalJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ protected function run($argument) {
$uid = null;
$compName = null;

/* @phan-suppress-next-line PhanUndeclaredClassMethod */
foreach ($vObject->getComponents() as $component) {
if ($component->name === 'VTIMEZONE') {
continue;
Expand All @@ -165,6 +166,7 @@ protected function run($argument) {
}

$uri = $uid . '.ics';
/* @phan-suppress-next-line PhanUndeclaredClassMethod */
$calendarData = $vObject->serialize();
try {
$this->calDavBackend->createCalendarObject($subscription['id'], $uri, $calendarData, CalDavBackend::CALENDAR_TYPE_SUBSCRIPTION);
Expand Down

0 comments on commit 31ac4b6

Please sign in to comment.