From 4749b6763a66d9c60acdda5bfad2fac32a976165 Mon Sep 17 00:00:00 2001
From: Prasad <prasad@vtiger.com>
Date: Thu, 1 Dec 2022 10:48:43 +0530
Subject: [PATCH] Fixes #1744: PHP 8.x number_format 2nd argument need to be
 strictly int.

---
 include/utils/utils.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/utils/utils.php b/include/utils/utils.php
index a287450ff..336ad1ef0 100755
--- a/include/utils/utils.php
+++ b/include/utils/utils.php
@@ -2023,7 +2023,7 @@ function getCurrencyDecimalPlaces($user = null) {
     } else if ($current_user) {
         $currency_decimal_places = $current_user->no_of_currency_decimals;
     }
-    return $currency_decimal_places;
+    return (int)$currency_decimal_places;
 }
 
 function getInventoryModules() {
-- 
GitLab