Skip to content

Commit 16d75af

Browse files
author
Stanislav Idolov
authored
Fix failed test
1 parent bf5493d commit 16d75af

File tree

1 file changed

+2
-1
lines changed
  • app/code/Magento/Backend/Block/Widget

1 file changed

+2
-1
lines changed

app/code/Magento/Backend/Block/Widget/Tabs.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,8 @@ protected function _beforeToHtml()
242242

243243
if ($this->_activeTab === null && !empty($this->_tabs)) {
244244
/** @var TabInterface $tab */
245-
$this->_activeTab = (reset($this->_tabs))->getId();
245+
$tab = reset($this->_tabs);
246+
$this->_activeTab = $tab->getId();
246247
}
247248

248249
$this->assign('tabs', $this->_tabs);

0 commit comments

Comments
 (0)