Skip to content

Commit 3ec0f57

Browse files
committed
Fix invalid return type provided for private method
1 parent 30caed7 commit 3ec0f57

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

app/code/Magento/Catalog/Model/Product/TierPriceManagement.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,9 +224,9 @@ private function isCustomerGroupApplicable(string $customerGroupId, array $price
224224
/**
225225
* Returns current Price Scope configuration value
226226
*
227-
* @return string
227+
* @return int
228228
*/
229-
private function getPriceScopeConfig(): string
229+
private function getPriceScopeConfig(): int
230230
{
231231
return (int)$this->config->getValue('catalog/price/scope', ScopeInterface::SCOPE_WEBSITE);
232232
}

app/code/Magento/Catalog/Test/Unit/Model/Product/TierPriceManagementTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,9 @@ public function testSuccessDeleteTierPrice()
203203
->method('getValue')
204204
->with('catalog/price/scope', ScopeInterface::SCOPE_WEBSITE)
205205
->willReturn(0);
206-
$this->priceModifierMock->expects($this->once())->method('removeTierPrice')->with($this->productMock, 4, 5, 0);
206+
$this->priceModifierMock->expects($this->once())
207+
->method('removeTierPrice')
208+
->with($this->productMock, 4, 5, 0);
207209

208210
$this->assertTrue($this->service->remove('product_sku', 4, 5, 0));
209211
}

0 commit comments

Comments
 (0)