Skip to content

Commit 9ad7f4a

Browse files
committed
AC-6810: Catalog Price Rule single product reindex works incorrectly
1 parent 84b9e96 commit 9ad7f4a

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

app/code/Magento/CatalogRule/Model/Indexer/AbstractIndexer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,10 @@ public function executeRow($id)
133133
* Execute partial indexation by ID. Template method
134134
*
135135
* @param int $id
136-
* @throws \Magento\Framework\Exception\LocalizedException
137136
* @return void
137+
*@throws \Magento\Framework\Exception\LocalizedException
138138
*/
139-
abstract protected function doExecuteRow($id);
139+
abstract protected function doExecuteRow(int $id);
140140

141141
/**
142142
* Get cache manager

app/code/Magento/CatalogRule/Model/Indexer/IndexBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,10 +260,10 @@ public function __construct(
260260
* Reindex by id
261261
*
262262
* @param int $id
263-
* @throws LocalizedException
264263
* @return void
264+
*@throws LocalizedException
265265
*/
266-
public function reindexById($id)
266+
public function reindexById(int $id)
267267
{
268268
try {
269269
$this->cleanProductIndex([$id]);

app/code/Magento/CatalogRule/Model/Indexer/Product/ProductRuleIndexer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ protected function doExecuteList($ids)
2121
/**
2222
* {@inheritdoc}
2323
*/
24-
protected function doExecuteRow($id)
24+
protected function doExecuteRow(int $id)
2525
{
2626
$this->indexBuilder->reindexById($id);
2727
}

app/code/Magento/CatalogRule/Model/Indexer/Rule/RuleProductIndexer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ protected function doExecuteList($ids)
2525
*
2626
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
2727
*/
28-
protected function doExecuteRow($id)
28+
protected function doExecuteRow(int $id)
2929
{
3030
$this->indexBuilder->reindexFull();
3131
}

0 commit comments

Comments
 (0)