We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16ae409 commit 4dc6abaCopy full SHA for 4dc6aba
app/code/Magento/Store/Url/Plugin/RouteParamsResolver.php
@@ -6,6 +6,7 @@
6
namespace Magento\Store\Url\Plugin;
7
8
use \Magento\Store\Model\Store;
9
+use \Magento\Store\Api\Data\StoreInterface;
10
use \Magento\Store\Model\ScopeInterface as StoreScopeInterface;
11
12
/**
@@ -65,9 +66,9 @@ public function beforeSetRouteParams(
65
66
unset($data['_scope']);
67
}
68
if (isset($data['_scope_to_url']) && (bool)$data['_scope_to_url'] === true) {
- /** @var Store $currentScope */
69
+ /** @var StoreInterface $currentScope */
70
$currentScope = $subject->getScope();
- $storeCode = $currentScope && $currentScope instanceof Store ?
71
+ $storeCode = $currentScope && $currentScope instanceof StoreInterface ?
72
$currentScope->getCode() :
73
$this->storeManager->getStore()->getCode();
74
0 commit comments