Skip to content

Commit 3ea0cf1

Browse files
ENGCOM-3206: [Backport] Create empty modelData array to avoid undefined var error #18657
- Merge Pull Request #18657 from gelanivishal/magento2:2.2-develop-PR-port-18529 - Merged commits: 1. e6dedb7 2. c2a2a10 3. c77ffb8
2 parents c19d876 + c77ffb8 commit 3ea0cf1

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)