Skip to content

Commit

Permalink
Fixed dependecies without source (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
chapcz authored and milo committed Mar 19, 2019
1 parent 021f1d3 commit 1cf090c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Panel.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ private static function format(array $packages, array $required)
$data = [];
foreach ($packages as $p) {
$data[$p['name']] = (object) [
'installed' => $p['version'] . ($p['version'] === 'dev-master'
'installed' => $p['version'] . ($p['version'] === 'dev-master' && isset($p['source']['reference'])
? ('#' . substr($p['source']['reference'], 0, 7))
: ''
),
Expand Down

0 comments on commit 1cf090c

Please sign in to comment.