Skip to content

Commit d6f14e2

Browse files
author
Stanislav Idolov
authored
ENGCOM-3163: Create empty modelData array to avoid undefined var error #18529
2 parents 293da5a + da31d67 commit d6f14e2

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

app/code/Magento/Developer/Console/Command/SourceThemeDeployCommand.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
*/
66
namespace Magento\Developer\Console\Command;
77

8-
use Magento\Framework\App\State;
98
use Magento\Framework\Validator\Locale;
109
use Magento\Framework\View\Asset\Repository;
1110
use Symfony\Component\Console\Command\Command;

app/code/Magento/NewRelicReporting/Model/Cron/ReportModulesInfo.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ public function report()
6464
$moduleData = $this->collect->getModuleData();
6565
if (count($moduleData['changes']) > 0) {
6666
foreach ($moduleData['changes'] as $change) {
67+
$modelData = [];
6768
switch ($change['type']) {
6869
case Config::ENABLED:
6970
$modelData = [

app/code/Magento/NewRelicReporting/Model/NewRelicWrapper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function addCustomParameter($param, $value)
3131
/**
3232
* Wrapper for 'newrelic_notice_error' function
3333
*
34-
* @param Exception $exception
34+
* @param \Exception $exception
3535
* @return void
3636
*/
3737
public function reportError($exception)

0 commit comments

Comments
 (0)