Skip to content

Commit abc6d0a

Browse files
committed
MAGETWO-91808: Categories of the Main menu in the different Store View not updated when varnish enabled
1 parent c2b8108 commit abc6d0a

File tree

12 files changed

+18
-6
lines changed

12 files changed

+18
-6
lines changed

app/code/Magento/Store/Controller/Store/Redirect.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22
/**
3-
*
43
* Copyright © Magento, Inc. All rights reserved.
54
* See COPYING.txt for license details.
65
*/
6+
declare(strict_types=1);
77

88
namespace Magento\Store\Controller\Store;
99

app/code/Magento/Store/Controller/Store/SwitchAction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function __construct(
7777
$this->storeRepository = $storeRepository;
7878
$this->storeManager = $storeManager;
7979
$this->messageManager = $context->getMessageManager();
80-
$this->storeSwitcher = $storeSwitcher ?: ObjectManager::getInstance()->get(StoreSwitcher::class);
80+
$this->storeSwitcher = $storeSwitcher ?: ObjectManager::getInstance()->get(StoreSwitcherInterface::class);
8181
}
8282

8383
/**

app/code/Magento/Store/Model/StoreSwitcher.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
67

78
namespace Magento\Store\Model;
89

app/code/Magento/Store/Model/StoreSwitcher/CannotSwitchStoreException.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
67

78
namespace Magento\Store\Model\StoreSwitcher;
89

app/code/Magento/Store/Model/StoreSwitcher/CleanTargetUrl.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
67

78
namespace Magento\Store\Model\StoreSwitcher;
89

app/code/Magento/Store/Model/StoreSwitcher/ManagePrivateContent.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
67

78
namespace Magento\Store\Model\StoreSwitcher;
89

app/code/Magento/Store/Model/StoreSwitcher/ManageStoreCookie.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
67

78
namespace Magento\Store\Model\StoreSwitcher;
89

app/code/Magento/Store/Model/StoreSwitcherInterface.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
67

78
namespace Magento\Store\Model;
89

app/code/Magento/UrlRewrite/Model/StoreSwitcher/RewriteUrl.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
67

78
namespace Magento\UrlRewrite\Model\StoreSwitcher;
89

dev/tests/integration/testsuite/Magento/Store/Model/StoreSwitcherTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento\Store\Model;
79

810
use Magento\Framework\ObjectManagerInterface as ObjectManager;
@@ -38,7 +40,7 @@ protected function setUp()
3840
* @throws StoreSwitcher\CannotSwitchStoreException
3941
* @throws \Magento\Framework\Exception\NoSuchEntityException
4042
*/
41-
public function testSwitch()
43+
public function testSwitch(): void
4244
{
4345
$redirectUrl = "http://domain.com/?SID=e5h3e086dce3ckkqt9ia7avl27&___store=fixture_second_store";
4446
$expectedUrl = "http://domain.com/";

0 commit comments

Comments
 (0)