mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-06-20 09:31:38 +00:00
Upgraded brick/math to latest version
This commit is contained in:
parent
506d5f8173
commit
527c42c227
11 changed files with 58 additions and 56 deletions
|
|
@ -222,7 +222,7 @@ class TimeTravel
|
|||
if (isset($metadata->fieldMappings[$field])) {
|
||||
//We need to convert the string to a BigDecimal first
|
||||
if (!$data instanceof BigDecimal && ('big_decimal' === $metadata->getFieldMapping($field)->type)) {
|
||||
$data = BigDecimal::of($data);
|
||||
$data = is_float($data) ? BigDecimal::fromFloatShortest($data) : BigDecimal::of($data);
|
||||
}
|
||||
|
||||
if (!$data instanceof \DateTimeInterface
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue