From 03a79ddefe9de0f5355758aa44b29234d81cfda0 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Sun, 1 Jan 2023 14:03:50 +0200 Subject: [PATCH] fix --- application/Espo/Classes/FieldValidators/CurrencyType.php | 1 - application/Espo/Core/Exceptions/ServiceUnavailable.php | 7 +++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/application/Espo/Classes/FieldValidators/CurrencyType.php b/application/Espo/Classes/FieldValidators/CurrencyType.php index 0aab0c0870..2004e7f00d 100644 --- a/application/Espo/Classes/FieldValidators/CurrencyType.php +++ b/application/Espo/Classes/FieldValidators/CurrencyType.php @@ -37,7 +37,6 @@ use Espo\ORM\Entity; class CurrencyType extends FloatType { private const DEFAULT_PRECISION = 13; - private const DEFAULT_SCALE = 4; public function __construct(private Config $config) {} diff --git a/application/Espo/Core/Exceptions/ServiceUnavailable.php b/application/Espo/Core/Exceptions/ServiceUnavailable.php index 7d53525119..dc1c263152 100644 --- a/application/Espo/Core/Exceptions/ServiceUnavailable.php +++ b/application/Espo/Core/Exceptions/ServiceUnavailable.php @@ -29,12 +29,19 @@ namespace Espo\Core\Exceptions; +use Throwable; + class ServiceUnavailable extends \Exception implements HasBody { /** @var int */ protected $code = 503; private ?string $body = null; + final public function __construct(string $message = '', int $code = 0, Throwable $previous = null) + { + parent::__construct($message, $code, $previous); + } + /** * Create with a body (supposed to be sent to the frontend). */