From ed4f48f3508dc5de1beb421bd12f812befc4c951 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Guillaume=20Perr=C3=A9al?= <guillaume.perreal@irstea.fr>
Date: Wed, 11 Dec 2019 16:29:46 +0100
Subject: [PATCH] =?UTF-8?q?R=C3=A8gle=20un=20probl=C3=A8me=20de=20compat?=
 =?UTF-8?q?=207.1.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

JSON_THROW_ON_ERROR: PHP ^7.3.
---
 src/Composer/ComposerPackage.php | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/Composer/ComposerPackage.php b/src/Composer/ComposerPackage.php
index 15fc83b..5912451 100644
--- a/src/Composer/ComposerPackage.php
+++ b/src/Composer/ComposerPackage.php
@@ -109,6 +109,9 @@ final class ComposerPackage implements ComposerPackageInterface
         $content = file_get_contents($composerPath);
         Assertion::string($content, "could not read `$composerPath`");
 
-        return $this->composerJson = json_decode($content, true, 512, \JSON_THROW_ON_ERROR);
+        $this->composerJson = json_decode($content, true);
+        Assertion::isArray($this->composerJson);
+
+        return $this->composerJson;
     }
 }
-- 
GitLab