Merge pull request #9669 from adlacruzes/jsonFileParsingException

JsonFile: add missing ParsingException throws annotations
main
Jordi Boggiano 3 years ago committed by GitHub
commit 28bc0cecf1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -80,6 +80,7 @@ class JsonFile
/** /**
* Reads json file. * Reads json file.
* *
* @throws ParsingException
* @throws \RuntimeException * @throws \RuntimeException
* @return mixed * @return mixed
*/ */
@ -172,6 +173,7 @@ class JsonFile
* @param int $schema a JsonFile::*_SCHEMA constant * @param int $schema a JsonFile::*_SCHEMA constant
* @param string|null $schemaFile a path to the schema file * @param string|null $schemaFile a path to the schema file
* @throws JsonValidationException * @throws JsonValidationException
* @throws ParsingException
* @return bool true on success * @return bool true on success
*/ */
public function validateSchema($schema = self::STRICT_SCHEMA, $schemaFile = null) public function validateSchema($schema = self::STRICT_SCHEMA, $schemaFile = null)
@ -289,6 +291,7 @@ class JsonFile
* @param string $json json string * @param string $json json string
* @param string $file the json file * @param string $file the json file
* *
* @throws ParsingException
* @return mixed * @return mixed
*/ */
public static function parseJson($json, $file = null) public static function parseJson($json, $file = null)

Loading…
Cancel
Save