From 46bd520b528ee3323e6bdd7c3f10f566f7807885 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Wed, 15 Feb 2023 17:09:36 +0200 Subject: [PATCH] cs --- application/Espo/Core/Utils/Util.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/application/Espo/Core/Utils/Util.php b/application/Espo/Core/Utils/Util.php index 8524cb5821..c4a9001fa6 100644 --- a/application/Espo/Core/Utils/Util.php +++ b/application/Espo/Core/Utils/Util.php @@ -29,6 +29,8 @@ namespace Espo\Core\Utils; +use Exception; +use RuntimeException; use stdClass; class Util @@ -638,8 +640,8 @@ class Util try { $hex = bin2hex(random_bytes(16)); } - catch (\Exception $e) { - throw new \RuntimeException("Could not generate UUID."); + catch (Exception) { + throw new RuntimeException("Could not generate UUID."); } return vsprintf('%s%s-%s-%s-%s-%s%s%s', str_split($hex, 4));