diff --git a/app/Http/Controllers/Settings/Currencies.php b/app/Http/Controllers/Settings/Currencies.php index 09be6ab8b..60f339836 100644 --- a/app/Http/Controllers/Settings/Currencies.php +++ b/app/Http/Controllers/Settings/Currencies.php @@ -58,11 +58,11 @@ class Currencies extends Controller } $precisions = (object) [ - 0 => 0, - 1 => 1, - 2 => 2, - 3 => 3, - 4 => 4, + '0' => '0', + '1' => '1', + '2' => '2', + '3' => '3', + '4' => '4', ]; return view('settings.currencies.create', compact('codes', 'precisions')); @@ -125,11 +125,11 @@ class Currencies extends Controller $currency->default_currency = ($currency->code == setting('default.currency')) ? 1 : 0; $precisions = (object) [ - 0 => 0, - 1 => 1, - 2 => 2, - 3 => 3, - 4 => 4, + '0' => '0', + '1' => '1', + '2' => '2', + '3' => '3', + '4' => '4', ]; return view('settings.currencies.edit', compact('currency', 'codes', 'precisions'));