mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-27 04:08:57 +02:00
Fixed strict type exception occuring in UpdateExchangeRatesCommand.
This commit is contained in:
parent
bce9061c62
commit
97f8afbc40
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ class UpdateExchangeRatesCommand extends Command
|
|||
foreach ($candidates as $currency) {
|
||||
try {
|
||||
$rate = $swap->latest($currency->getIsoCode().'/'.$this->base_current);
|
||||
$currency->setExchangeRate($rate->getValue());
|
||||
$currency->setExchangeRate((string) $rate->getValue());
|
||||
$io->note(sprintf('Set exchange rate of %s to %f', $currency->getIsoCode(), $currency->getExchangeRate()));
|
||||
$this->em->persist($currency);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue