From 2d914524e9b58b552198bf6fae6dfc0144c82d99 Mon Sep 17 00:00:00 2001 From: adlacruzes Date: Fri, 5 Feb 2021 17:26:17 +0100 Subject: [PATCH] JsonFile: add missing ParsingException throws annotations --- src/Composer/Json/JsonFile.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Composer/Json/JsonFile.php b/src/Composer/Json/JsonFile.php index e794fe63a..f4c595b39 100644 --- a/src/Composer/Json/JsonFile.php +++ b/src/Composer/Json/JsonFile.php @@ -80,6 +80,7 @@ class JsonFile /** * Reads json file. * + * @throws ParsingException * @throws \RuntimeException * @return mixed */ @@ -172,6 +173,7 @@ class JsonFile * @param int $schema a JsonFile::*_SCHEMA constant * @param string|null $schemaFile a path to the schema file * @throws JsonValidationException + * @throws ParsingException * @return bool true on success */ public function validateSchema($schema = self::STRICT_SCHEMA, $schemaFile = null) @@ -289,6 +291,7 @@ class JsonFile * @param string $json json string * @param string $file the json file * + * @throws ParsingException * @return mixed */ public static function parseJson($json, $file = null)