Commit ed4f48f3 authored by Guillaume Perréal's avatar Guillaume Perréal
Browse files

Règle un problème de compat 7.1.

JSON_THROW_ON_ERROR: PHP ^7.3.
Showing with 4 additions and 1 deletion
+4 -1
......@@ -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;
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment