EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
add throw
Yurii1ba438fa9f6b
diff --git a/application/Espo/Tools/EntityManager/Hook/CreateHook.php b/application/Espo/Tools/EntityManager/Hook/CreateHook.phpindex c3e8fc6094..7743d75293 100644--- a/application/Espo/Tools/EntityManager/Hook/CreateHook.php+++ b/application/Espo/Tools/EntityManager/Hook/CreateHook.php@@ -29,9 +29,13 @@namespace Espo\Tools\EntityManager\Hook;+use Espo\Core\Exceptions\Error;use Espo\Tools\EntityManager\Params;interface CreateHook{+ /**+ * @throws Error+ */public function process(Params $params): void;}diff --git a/application/Espo/Tools/EntityManager/Hook/DeleteHook.php b/application/Espo/Tools/EntityManager/Hook/DeleteHook.phpindex 85ac983035..2b8d3918ff 100644--- a/application/Espo/Tools/EntityManager/Hook/DeleteHook.php+++ b/application/Espo/Tools/EntityManager/Hook/DeleteHook.php@@ -29,9 +29,13 @@namespace Espo\Tools\EntityManager\Hook;+use Espo\Core\Exceptions\Error;use Espo\Tools\EntityManager\Params;interface DeleteHook{+ /**+ * @throws Error+ */public function process(Params $params): void;}diff --git a/application/Espo/Tools/EntityManager/Hook/UpdateHook.php b/application/Espo/Tools/EntityManager/Hook/UpdateHook.phpindex b960e38358..0696715549 100644--- a/application/Espo/Tools/EntityManager/Hook/UpdateHook.php+++ b/application/Espo/Tools/EntityManager/Hook/UpdateHook.php@@ -29,9 +29,13 @@namespace Espo\Tools\EntityManager\Hook;+use Espo\Core\Exceptions\Error;use Espo\Tools\EntityManager\Params;interface UpdateHook{+ /**+ * @throws Error+ */public function process(Params $params, Params $previousParams): void;}