Skip to content

Commit 732905f

Browse files
coderimusrostyslav-hymon
authored andcommitted
Fix possible error with setting class properties
1 parent 8e3b570 commit 732905f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/Sales/Block/Order/Recent.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ class Recent extends \Magento\Framework\View\Element\Template
5050
* @param \Magento\Sales\Model\ResourceModel\Order\CollectionFactory $orderCollectionFactory
5151
* @param \Magento\Customer\Model\Session $customerSession
5252
* @param \Magento\Sales\Model\Order\Config $orderConfig
53-
* @param \Magento\Store\Model\StoreManagerInterface $storeManager
5453
* @param array $data
54+
* @param \Magento\Store\Model\StoreManagerInterface $storeManager
5555
*/
5656
public function __construct(
5757
Context $context,
@@ -65,9 +65,9 @@ public function __construct(
6565
$this->_customerSession = $customerSession;
6666
$this->_orderConfig = $orderConfig;
6767
$this->_isScopePrivate = true;
68+
parent::__construct($context, $data);
6869
$this->storeManager = $storeManager ?: ObjectManager::getInstance()
6970
->get(StoreManagerInterface::class);
70-
parent::__construct($context, $data);
7171
}
7272

7373
/**

0 commit comments

Comments
 (0)