Skip to content

Commit 0a5d7f1

Browse files
#39169: Special Price To Date is wrongly validated on applySpecialPrice
- fix unit and static tests
1 parent 188ece2 commit 0a5d7f1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/code/Magento/Bundle/Test/Unit/Model/Product/PriceTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ function ($value) {
143143

144144
$specialPriceService->expects($this->any())
145145
->method('execute')
146-
->willReturnCallback(function($value) {
146+
->willReturnCallback(function ($value) {
147147
return $value;
148148
});
149149

app/code/Magento/Catalog/Model/Product/Type/Price.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ class Price implements ResetAfterRequestInterface
9090
private $tierPriceExtensionFactory;
9191

9292
/**
93-
* @var SpecialPriceService
93+
* @var SpecialPriceService|null
9494
*/
95-
protected SpecialPriceService $specialPriceService;
95+
protected ?SpecialPriceService $specialPriceService;
9696

9797
/**
9898
* Constructor

0 commit comments

Comments
 (0)