mirror of
https://github.com/archtechx/money.git
synced 2025-12-13 03:34:04 +00:00
rename deleteTrailingDecimalZeros to trimTrailingDecimalZeros
This commit is contained in:
parent
dadab9553f
commit
9547070193
7 changed files with 12 additions and 12 deletions
|
|
@ -15,5 +15,5 @@ class CZK extends Currency
|
|||
protected string $thousandsSeparator = '.';
|
||||
protected int $rounding = 2;
|
||||
protected string $suffix = ' Kč';
|
||||
protected bool $deleteTrailingDecimalZeros = false;
|
||||
protected bool $trimTrailingDecimalZeros = false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,5 +13,5 @@ class EUR extends Currency
|
|||
protected int $displayDecimals = 2;
|
||||
protected int $rounding = 0;
|
||||
protected string $suffix = ' €';
|
||||
protected bool $deleteTrailingDecimalZeros = false;
|
||||
protected bool $trimTrailingDecimalZeros = false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,5 +13,5 @@ class SEK extends Currency
|
|||
protected int $displayDecimals = 2;
|
||||
protected int $rounding = 0;
|
||||
protected string $suffix = ' kr';
|
||||
protected bool $deleteTrailingDecimalZeros = true;
|
||||
protected bool $trimTrailingDecimalZeros = true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ test('currencies can be serialized to JSON', function () {
|
|||
'rounding' => 2,
|
||||
'decimalSeparator' => ',',
|
||||
'thousandsSeparator' => '.',
|
||||
'deleteTrailingDecimalZeros' => false,
|
||||
'trimTrailingDecimalZeros' => false,
|
||||
]);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue