diff --git a/src/Lockfile.php b/src/Lockfile.php index 643041d..4a533e7 100644 --- a/src/Lockfile.php +++ b/src/Lockfile.php @@ -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()); } /**