Skip to content

Commit

Permalink
Merge pull request #1 from cybercog/add/packages-to-lockfile-parser
Browse files Browse the repository at this point in the history
Add `packages` & `packagesDev` to Lockfile
  • Loading branch information
Maximilian Schmidt authored Apr 5, 2019
2 parents 70d093e + 4bc612d commit 6b14230
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Lockfile.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ public function __construct(array $data = [])
$this->platform = (array_key_exists('platform', $data) ? new PackageMap($data['platform']) : new PackageMap);
$this->platformDev = (array_key_exists('platform-dev', $data) ? new PackageMap($data['platform-dev']) : new PackageMap());
$this->platformOverride = (array_key_exists('platform-override', $data) ? new PackageMap($data['platform-override']) : new PackageMap());
$this->packages = (array_key_exists('packages', $data) ? new PackageMap($data['packages']) : new PackageMap());
$this->packagesDev = (array_key_exists('packages-dev', $data) ? new PackageMap($data['packages-dev']) : new PackageMap());
}

/**
Expand Down

0 comments on commit 6b14230

Please sign in to comment.