Skip to content

Commit fb968ef

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

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
@@ -113,7 +113,9 @@ public function build()
113113
$packages = [];
114114

115115
if ($this->files->exists($path = $this->vendorPath.'/composer/installed.json')) {
116-
$packages = json_decode($this->files->get($path), true);
116+
$installed = json_decode($this->files->get($path), true);
117+
118+
$packages = $installed['packages'] ?? $installed;
117119
}
118120

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

0 commit comments

Comments
 (0)