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 f59f51e commit a200bd7Copy full SHA for a200bd7
app/code/Magento/SalesRule/Controller/Adminhtml/Promo/Quote/Generate.php
@@ -101,7 +101,10 @@ public function __construct(
101
ObjectManager::getInstance()->get(
102
GetCouponCodeLengthInterface::class
103
);
104
- $this->scopeConfig = $scopeConfig;
+ $this->scopeConfig = $scopeConfig ?:
105
+ ObjectManager::getInstance()->get(
106
+ ScopeConfigInterface::class
107
+ );
108
}
109
110
/**
@@ -110,7 +113,7 @@ public function __construct(
113
* @return void
111
114
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
112
115
*/
- public function execute(): void
116
+ public function execute()
117
{
118
if (!$this->getRequest()->isAjax()) {
119
$this->_forward('noroute');
0 commit comments