Skip to content

Commit 98a2a77

Browse files
committed
adds extra adjustments
1 parent 4766281 commit 98a2a77

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Api/Insights/EventProcessorInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public function convertAddToCart(
9191
string $eventName,
9292
string $indexName,
9393
Item $item,
94-
string $queryID = null
94+
?string $queryID = null
9595
): array;
9696

9797
/**
@@ -123,7 +123,7 @@ public function convertPurchaseForItems(
123123
string $eventName,
124124
string $indexName,
125125
array $items,
126-
string $queryID = null
126+
?string $queryID = null
127127
): array;
128128

129129
}

Plugin/AddToCartRedirectForInsights.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function __construct(
4141
* @throws LocalizedException
4242
* @throws NoSuchEntityException
4343
*/
44-
public function beforeAddProduct(Cart $cartModel, int|Product $productInfo, ?array|int|DataObject $requestInfo = null)
44+
public function beforeAddProduct(Cart $cartModel, int|Product $productInfo, array|int|DataObject|null $requestInfo)
4545
{
4646
// First, check is Insights are enabled
4747
if (!$this->configHelper->isClickConversionAnalyticsEnabled($this->storeManager->getStore()->getId())) {

Plugin/StockItemObserver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function beforeSave(
4444
*/
4545
public function afterDelete(
4646
\Magento\CatalogInventory\Model\ResourceModel\Stock\Item $stockItemResource,
47-
?\Magento\CatalogInventory\Model\ResourceModel\Stock\Item $result = null,
47+
\Magento\CatalogInventory\Model\ResourceModel\Stock\Item $result,
4848
\Magento\CatalogInventory\Api\Data\StockItemInterface $stockItem
4949
) {
5050
$stockItemResource->addCommitCallback(function () use ($stockItem) {

0 commit comments

Comments
 (0)