Skip to content

Commit 89597c1

Browse files
committed
fix exception issue
1 parent 1f351e3 commit 89597c1

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

app/Domain/Calendar/Repositories/Calendar.php

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
use Leantime\Domain\Tickets\Services\Tickets;
1414
use Leantime\Domain\Users\Repositories\Users;
1515
use PDO;
16-
use PHPUnit\Exception;
1716

1817
/**
1918
*

app/Domain/Calendar/Services/Calendar.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ public function getIcalByHash(string $userHash, string $calHash): IcalCalendar
277277
$calendarEvents = $this->calendarRepo->getCalendarBySecretHash($userHash, $calHash);
278278

279279
if(!$calendarEvents) {
280-
throw new Exception("Calendar could not be retrieved");
280+
throw new \Exception("Calendar could not be retrieved");
281281
}
282282

283283
$eventObjects = [];

0 commit comments

Comments
 (0)