Skip to content

Commit 51def2e

Browse files
Add support for the new composer installed.json format (#32310) (#32331)
Co-authored-by: Jakub Arbet <[email protected]>
1 parent ac2e994 commit 51def2e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Illuminate/Foundation/PackageManifest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@ public function build()
111111
$packages = [];
112112

113113
if ($this->files->exists($path = $this->vendorPath.'/composer/installed.json')) {
114-
$packages = json_decode($this->files->get($path), true);
114+
$installed = json_decode($this->files->get($path), true);
115+
116+
$packages = $installed['packages'] ?? $installed;
115117
}
116118

117119
$ignoreAll = in_array('*', $ignore = $this->packagesToIgnore());

0 commit comments

Comments
 (0)