Skip to content

Commit

Permalink
Add packages & packagesDev to lockFile parser
Browse files Browse the repository at this point in the history
  • Loading branch information
antonkomarev committed Apr 4, 2019
1 parent 70d093e commit 4bc612d
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 4bc612d

Please sign in to comment.