Skip to content

EspoCRM – Open Source CRM Application

fix throws doc

Yuri Kuznetsov15cd13905c45
diff --git a/application/Espo/Modules/Crm/Tools/Calendar/FreeBusy/Service.php b/application/Espo/Modules/Crm/Tools/Calendar/FreeBusy/Service.php
index d3018db365..20d6b6dd1b 100644
--- a/application/Espo/Modules/Crm/Tools/Calendar/FreeBusy/Service.php
+++ b/application/Espo/Modules/Crm/Tools/Calendar/FreeBusy/Service.php
@@ -30,7 +30,6 @@
namespace Espo\Modules\Crm\Tools\Calendar\FreeBusy;
use Espo\Core\Exceptions\Forbidden;
-use Espo\Core\Exceptions\NotFound;
use Espo\Entities\User;
use Espo\Modules\Crm\Tools\Calendar\FetchParams as CalendarFetchParams;
use Espo\Modules\Crm\Tools\Calendar\Items\BusyRange;
@@ -49,7 +48,6 @@ class Service
* Fetch busy-ranges for user. Access is not checked by default.
*
* @return BusyRange[]
- * @throws NotFound
* @throws Forbidden
*/
public function fetchRanges(User $user, FetchParams $params): array
diff --git a/application/Espo/Modules/Crm/Tools/Calendar/Service.php b/application/Espo/Modules/Crm/Tools/Calendar/Service.php
index e235350d9d..91af680697 100644
--- a/application/Espo/Modules/Crm/Tools/Calendar/Service.php
+++ b/application/Espo/Modules/Crm/Tools/Calendar/Service.php
@@ -785,7 +785,6 @@ class Service
* @internal Use FreeBusy/Service instead.
*
* @return BusyRange[]
- * @throws NotFound
* @throws Forbidden
*/
public function fetchBusyRanges(User $user, FetchBusyParams $params, FetchParams $fetchParams): array