do not use comma seperator when using number_format

This commit is contained in:
David Remer 2020-11-09 08:45:17 +02:00
parent 97c78b02a9
commit f7635fc51c
2 changed files with 2 additions and 2 deletions

View file

@ -74,7 +74,7 @@ class Amount {
public function to_array(): array {
$amount = array(
'currency_code' => $this->currency_code(),
'value' => number_format( $this->value(), 2 ),
'value' => number_format( $this->value(), 2, '.', '' ),
);
if ( $this->breakdown() && count( $this->breakdown()->to_array() ) ) {
$amount['breakdown'] = $this->breakdown()->to_array();

View file

@ -65,7 +65,7 @@ class Money {
public function to_array(): array {
return array(
'currency_code' => $this->currency_code(),
'value' => number_format( $this->value(), 2 ),
'value' => number_format( $this->value(), 2, '.', '' ),
);
}
}