diff --git a/src/Command/UpdateExchangeRatesCommand.php b/src/Command/UpdateExchangeRatesCommand.php index 90d1f3ac..721bbecc 100644 --- a/src/Command/UpdateExchangeRatesCommand.php +++ b/src/Command/UpdateExchangeRatesCommand.php @@ -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);