Skip to content

Commit c21a4d5

Browse files
Fix integration tests - cast to int to ensure correct type is passed.
1 parent 3945138 commit c21a4d5

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,11 @@ public function execute(int $batchCount, ?int $productId = null, bool $useAdditi
9898
* because for each website date in website's timezone should be used
9999
*/
100100
foreach ($this->storeManager->getWebsites() as $website) {
101-
$productsStmt = $this->ruleProductsSelectBuilder->build($website->getId(), $productId, $useAdditionalTable);
101+
$productsStmt = $this->ruleProductsSelectBuilder->build(
102+
(int)$website->getId(),
103+
$productId,
104+
$useAdditionalTable
105+
);
102106
$this->reindexRuleProductsPriceProcessor->execute(
103107
$productsStmt,
104108
$website,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function execute(int $batchCount, array $productIds, bool $useAdditionalT
4949
*/
5050
foreach ($this->storeManager->getWebsites() as $website) {
5151
$productsStmt = $this->ruleProductsSelectBuilder->buildSelect(
52-
$website->getId(),
52+
(int)$website->getId(),
5353
$productIds,
5454
$useAdditionalTable
5555
);

0 commit comments

Comments
 (0)