We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent faca15b commit 9d8ac68Copy full SHA for 9d8ac68
src/Entity/Request/GetDeliveryDate.php
@@ -444,7 +444,7 @@ public function setAllowSundaySorting(bool|int|string|null $AllowSundaySorting =
444
public function getCacheKey(): string
445
{
446
$cacheKey = "GetDeliveryDate.{$this->getGetDeliveryDate()?->getAllowSundaySorting()}.{$this->getGetDeliveryDate()?->getShippingDuration()}.{$this->getGetDeliveryDate()?->getShippingDate()?->format(format: 'Y-m-d')}";
447
- foreach ($this->getOptions() as $option) {
+ foreach ($this->getOptions() ?: [] as $option) {
448
$cacheKey .= ".$option";
449
}
450
$cutOffTimes = $this->getGetDeliveryDate()?->getCutOffTimes();
0 commit comments