Skip to content

Commit

Permalink
Add support for the new composer installed.json format (#32310) (#32331)
Browse files Browse the repository at this point in the history
Co-authored-by: Jakub Arbet <jakub.arbet@protonmail.com>
  • Loading branch information
GrahamCampbell and KubqoA committed Apr 11, 2020
1 parent ac2e994 commit 51def2e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Illuminate/Foundation/PackageManifest.php
Expand Up @@ -111,7 +111,9 @@ public function build()
$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());
Expand Down

0 comments on commit 51def2e

Please sign in to comment.