Skip to content

Commit e3b3104

Browse files
committed
MAGE-1023 Fix landing page typing
1 parent c4c62db commit e3b3104

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Block/Algolia.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ protected function getAddToCartUrl($additional = []): string
215215
return $this->_urlBuilder->getUrl('checkout/cart/add', $routeParams);
216216
}
217217

218-
protected function getCurrentLandingPage(): LandingPage|null|false
218+
protected function getCurrentLandingPage(): \Algolia\AlgoliaSearch\Model\LandingPage|null|false
219219
{
220220
$landingPageId = $this->getRequest()->getParam('landing_page_id');
221221
if (!$landingPageId) {

Helper/LandingPageHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function __construct(
5959
parent::__construct($context);
6060
}
6161

62-
public function getLandingPage($pageId)
62+
public function getLandingPage($pageId): LandingPage|null|false
6363
{
6464
if ($pageId !== null && $pageId !== $this->landingPage->getId()) {
6565
$this->landingPage->setStoreId($this->storeManager->getStore()->getId());

0 commit comments

Comments
 (0)