From 80dc4b6455b1a4ebfb6c8995e4f61b2a797a154c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=BCneyt=20=C5=9Eent=C3=BCrk?= Date: Fri, 14 Feb 2020 16:39:15 +0300 Subject: [PATCH] Currency precision always return integer --- app/Models/Setting/Currency.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Setting/Currency.php b/app/Models/Setting/Currency.php index f74468df5..cc7482515 100644 --- a/app/Models/Setting/Currency.php +++ b/app/Models/Setting/Currency.php @@ -90,7 +90,7 @@ class Currency extends Model return config('money.' . $this->code . '.precision'); } - return $value; + return (int) $value; } /**