Skip to content

Commit

Permalink
Merge pull request #2 from mpromain/bugfix-no-dev
Browse files Browse the repository at this point in the history
Panel not function if install composer with --no-dev
  • Loading branch information
milo committed Mar 4, 2016
2 parents 6fe7876 + 412f799 commit 54c1771
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Panel.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ public function getPanel()
$installed = $this->decode($lockFile);

if ($this->error === NULL) {
$required = array_filter($required);
$installed = array_filter($installed);
$required += ['require' => [], 'require-dev' => []];
$installed += ['packages' => [], 'packages-dev' => []];
$data = [
'Packages' => self::format($installed['packages'], $required['require']),
'Dev Packages' => self::format($installed['packages-dev'], $required['require-dev']),
Expand Down

0 comments on commit 54c1771

Please sign in to comment.