Skip to content

Commit 9d8ac68

Browse files
committed
Fix GetDeliveryDate getCacheKey warning
1 parent faca15b commit 9d8ac68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Entity/Request/GetDeliveryDate.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ public function setAllowSundaySorting(bool|int|string|null $AllowSundaySorting =
444444
public function getCacheKey(): string
445445
{
446446
$cacheKey = "GetDeliveryDate.{$this->getGetDeliveryDate()?->getAllowSundaySorting()}.{$this->getGetDeliveryDate()?->getShippingDuration()}.{$this->getGetDeliveryDate()?->getShippingDate()?->format(format: 'Y-m-d')}";
447-
foreach ($this->getOptions() as $option) {
447+
foreach ($this->getOptions() ?: [] as $option) {
448448
$cacheKey .= ".$option";
449449
}
450450
$cutOffTimes = $this->getGetDeliveryDate()?->getCutOffTimes();

0 commit comments

Comments
 (0)