Skip to content

Commit

Permalink
Fix undefined index notice when using path repos (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
emodric authored and andrerom committed Dec 15, 2017
1 parent 85fda86 commit d87ca4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SystemInfo/Collector/JsonComposerLockSystemInfoCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ public function collect()
$packages[$packageData['name']] = new Value\ComposerPackage([
'name' => $packageData['name'],
'version' => $packageData['version'],
'dateTime' => new \DateTime($packageData['time']),
'dateTime' => isset($packageData['time']) ? new \DateTime($packageData['time']) : null,
'homepage' => isset($packageData['homepage']) ? $packageData['homepage'] : '',
'reference' => $packageData['source']['reference'],
'reference' => isset($packageData['source']) ? $packageData['source']['reference'] : null,
]);

if (isset($lockData['stability-flags'][$packageData['name']])) {
Expand Down

0 comments on commit d87ca4d

Please sign in to comment.