From c6293580d9eef382094295abc71dbd2f78c74efe Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Tue, 14 Jul 2020 13:39:05 +0300 Subject: [PATCH] compatibility fixes --- .../Core/Formula/Functions/FunctionBase.php | 2 +- application/Espo/Core/Notificators/Base.php | 37 +++++++++++++++++++ .../Core/Notificators/DefaultNotificator.php | 2 - 3 files changed, 38 insertions(+), 3 deletions(-) create mode 100644 application/Espo/Core/Notificators/Base.php diff --git a/application/Espo/Core/Formula/Functions/FunctionBase.php b/application/Espo/Core/Formula/Functions/FunctionBase.php index b4aa038971..877e09c372 100644 --- a/application/Espo/Core/Formula/Functions/FunctionBase.php +++ b/application/Espo/Core/Formula/Functions/FunctionBase.php @@ -50,7 +50,7 @@ abstract class FunctionBase return $this->variables; } - protected function getEntity() : Entity + protected function getEntity() { if (!$this->entity) { throw new Error('Formula: Entity required but not passed.'); diff --git a/application/Espo/Core/Notificators/Base.php b/application/Espo/Core/Notificators/Base.php new file mode 100644 index 0000000000..6d4b6617ab --- /dev/null +++ b/application/Espo/Core/Notificators/Base.php @@ -0,0 +1,37 @@ +