File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
app/code/Magento/Store/Url/Plugin Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 66namespace Magento \Store \Url \Plugin ;
77
88use \Magento \Store \Model \Store ;
9+ use \Magento \Store \Api \Data \StoreInterface ;
910use \Magento \Store \Model \ScopeInterface as StoreScopeInterface ;
1011
1112/**
@@ -65,9 +66,9 @@ public function beforeSetRouteParams(
6566 unset($ data ['_scope ' ]);
6667 }
6768 if (isset ($ data ['_scope_to_url ' ]) && (bool )$ data ['_scope_to_url ' ] === true ) {
68- /** @var Store $currentScope */
69+ /** @var StoreInterface $currentScope */
6970 $ currentScope = $ subject ->getScope ();
70- $ storeCode = $ currentScope && $ currentScope instanceof Store ?
71+ $ storeCode = $ currentScope && $ currentScope instanceof StoreInterface ?
7172 $ currentScope ->getCode () :
7273 $ this ->storeManager ->getStore ()->getCode ();
7374
You can’t perform that action at this time.
0 commit comments