From 97f8afbc408a6070be3a6964917e798748acdada Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Sun, 5 Jan 2020 22:10:52 +0100 Subject: [PATCH] Fixed strict type exception occuring in UpdateExchangeRatesCommand. --- src/Command/UpdateExchangeRatesCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);