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

 - Merge Pull Request #18657 from gelanivishal/magento2:2.2-develop-PR-port-18529
 - Merged commits:
   1. e6dedb7
   2. c2a2a10
   3. c77ffb8
  • Loading branch information
magento-engcom-team committed Oct 17, 2018
2 parents c19d876 + c77ffb8 commit 3ea0cf1
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 3ea0cf1

Please sign in to comment.