Commit 595d9a94 authored by chenhao's avatar chenhao

Update PackageManifest.php

parent 34525c42
Pipeline #39068 failed with stages
......@@ -113,7 +113,9 @@ class PackageManifest
$packages = [];
if ($this->files->exists($path = $this->vendorPath.'/composer/installed.json')) {
$packages = json_decode($this->files->get($path), true);
$installed = json_decode($this->files->get($path), true);
$packages = $installed['packages'] ?? $installed;
}
$ignoreAll = in_array('*', $ignore = $this->packagesToIgnore());
......@@ -172,4 +174,4 @@ class PackageManifest
$this->manifestPath, '<?php return '.var_export($manifest, true).';'
);
}
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment