diff --git a/src/CoreShop/Bundle/CoreBundle/Collector/CurrencyCollector.php b/src/CoreShop/Bundle/CoreBundle/Collector/CurrencyCollector.php index d76584afd3..b000ac1fdf 100644 --- a/src/CoreShop/Bundle/CoreBundle/Collector/CurrencyCollector.php +++ b/src/CoreShop/Bundle/CoreBundle/Collector/CurrencyCollector.php @@ -45,7 +45,7 @@ public function __construct( public function getCurrency(): ?CurrencyInterface { - return $this->data['currency']; + return $this->data['currency'] ?? null; } public function getCurrencies(): array