Skip to content

Commit

Permalink
Fix GetDeliveryDate getCacheKey warning
Browse files Browse the repository at this point in the history
  • Loading branch information
firstred committed Nov 29, 2024
1 parent faca15b commit 9d8ac68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Entity/Request/GetDeliveryDate.php
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ public function setAllowSundaySorting(bool|int|string|null $AllowSundaySorting =
public function getCacheKey(): string
{
$cacheKey = "GetDeliveryDate.{$this->getGetDeliveryDate()?->getAllowSundaySorting()}.{$this->getGetDeliveryDate()?->getShippingDuration()}.{$this->getGetDeliveryDate()?->getShippingDate()?->format(format: 'Y-m-d')}";
foreach ($this->getOptions() as $option) {
foreach ($this->getOptions() ?: [] as $option) {
$cacheKey .= ".$option";
}
$cutOffTimes = $this->getGetDeliveryDate()?->getCutOffTimes();
Expand Down

0 comments on commit 9d8ac68

Please sign in to comment.