Skip to content

Commit 32bd33d

Browse files
authored
Fixed static test failure
1 parent 0a264dd commit 32bd33d

File tree

1 file changed

+1
-2
lines changed
  • app/code/Magento/Sales/Block/Adminhtml/Order/Create

1 file changed

+1
-2
lines changed

app/code/Magento/Sales/Block/Adminhtml/Order/Create/Sidebar.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ class Sidebar extends \Magento\Sales\Block\Adminhtml\Order\Create\AbstractCreate
2121
protected function _prepareLayout()
2222
{
2323
if ($this->getCustomerId()) {
24-
// phpstan:ignore "Undefined variable"
2524
$button = $this->getLayout()->createBlock(
2625
\Magento\Backend\Block\Widget\Button::class
2726
)->setData(
@@ -37,7 +36,7 @@ protected function _prepareLayout()
3736
}
3837

3938
if ($this->getCustomerId()) {
40-
// phpstan:ignore "Undefined variable"
39+
// phpstan:ignore
4140
$button = clone $button;
4241
$button->unsId();
4342
$this->setChild('bottom_button', $button);

0 commit comments

Comments
 (0)