Skip to content

Commit

Permalink
MAGE-1023 Fix landing page typing
Browse files Browse the repository at this point in the history
  • Loading branch information
cammonro committed Sep 6, 2024
1 parent f15a7ec commit 7807962
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Block/Algolia.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ protected function getAddToCartUrl($additional = []): string
return $this->_urlBuilder->getUrl('checkout/cart/add', $routeParams);
}

protected function getCurrentLandingPage(): LandingPage|null|false
protected function getCurrentLandingPage(): \Algolia\AlgoliaSearch\Model\LandingPage|null|false
{
$landingPageId = $this->getRequest()->getParam('landing_page_id');
if (!$landingPageId) {
Expand Down
2 changes: 1 addition & 1 deletion Helper/LandingPageHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function __construct(
parent::__construct($context);
}

public function getLandingPage($pageId)
public function getLandingPage($pageId): LandingPage|null|false
{
if ($pageId !== null && $pageId !== $this->landingPage->getId()) {
$this->landingPage->setStoreId($this->storeManager->getStore()->getId());
Expand Down

0 comments on commit 7807962

Please sign in to comment.