Skip to content

Commit

Permalink
QuantityValue: NumberFormatter::format(): Argument pimcore#1 ($num) m…
Browse files Browse the repository at this point in the history
…ust be of type int|float, string given
  • Loading branch information
blankse committed Aug 17, 2023
1 parent d76bf04 commit 927343e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/DataObject/Data/QuantityValue.php
Expand Up @@ -51,7 +51,7 @@ public function __toString(): string

if ($locale) {
$formatter = new \NumberFormatter($locale, \NumberFormatter::DECIMAL);
$value = $formatter->format($value);
$value = $formatter->format((float) $value);
}
}

Expand Down

0 comments on commit 927343e

Please sign in to comment.