From f60ac8c4d4e0c14d47ca0bf6ee2fe0862cb16451 Mon Sep 17 00:00:00 2001 From: Jakub Arbet Date: Thu, 9 Apr 2020 13:53:55 +0200 Subject: [PATCH] Add support for the new composer installed.json format --- src/Illuminate/Foundation/PackageManifest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Illuminate/Foundation/PackageManifest.php b/src/Illuminate/Foundation/PackageManifest.php index 5ef13b7106a9..46617069af9b 100644 --- a/src/Illuminate/Foundation/PackageManifest.php +++ b/src/Illuminate/Foundation/PackageManifest.php @@ -122,7 +122,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());