Skip to content

Commit

Permalink
ENGCOM-3206: [Backport] Create empty modelData array to avoid undefin…
Browse files Browse the repository at this point in the history
…ed var error #18657
  • Loading branch information
Stanislav Idolov authored Oct 17, 2018
2 parents 7ddd0b1 + 3ea0cf1 commit 6674052
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
*/
namespace Magento\Developer\Console\Command;

use Magento\Framework\App\State;
use Magento\Framework\Validator\Locale;
use Magento\Framework\View\Asset\Repository;
use Symfony\Component\Console\Command\Command;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ public function report()
$moduleData = $this->collect->getModuleData();
if (count($moduleData['changes']) > 0) {
foreach ($moduleData['changes'] as $change) {
$modelData = [];
switch ($change['type']) {
case Config::ENABLED:
$modelData = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function addCustomParameter($param, $value)
/**
* Wrapper for 'newrelic_notice_error' function
*
* @param Exception $exception
* @param \Exception $exception
* @return void
*/
public function reportError($exception)
Expand Down

0 comments on commit 6674052

Please sign in to comment.