type fixes

This commit is contained in:
Yuri Kuznetsov
2022-05-29 10:34:48 +03:00
parent 767e775f31
commit 4f00a18599
2 changed files with 2 additions and 4 deletions

View File

@@ -44,7 +44,6 @@ use Espo\Core\{
};
use ICal\ICal;
use ICal\Event;
use Throwable;
use stdClass;
@@ -85,7 +84,7 @@ class IcsDataLoader implements Loader
$ical->initString($icsContents);
/* @var $event Event */
/* @var \ICal\Event|null $event */
$event = $ical->events()[0] ?? null;
if ($event === null) {

View File

@@ -29,7 +29,6 @@
namespace Espo\Core\Mail\Event;
use ICal\Event as U01jmg3Event;
use ICal\ICal as U01jmg3ICal;
use RuntimeException;
@@ -38,7 +37,7 @@ class EventFactory
{
public static function createFromU01jmg3Ical(U01jmg3ICal $ical): Event
{
/* @var $event U01jmg3Event */
/* @var \ICal\Event|null $event */
$event = $ical->events()[0] ?? null;
if (!$event) {