Skip to content

Commit 5a3c083

Browse files
authored
Merge pull request #21 from lukeify/docs/phpdoc-throws
Add @throws tags to the public API
2 parents 7bf33c4 + 9f95c11 commit 5a3c083

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/Json5Decoder.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ private function __construct($json, $associative = false, $depth = 512, $castBig
6666
* @param int $depth User specified recursion depth.
6767
* @param int $options Bitmask of JSON decode options.
6868
*
69+
* @throws SyntaxError if the JSON encoded string could not be parsed.
70+
*
6971
* @return mixed
7072
*/
7173
public static function decode($source, $associative = false, $depth = 512, $options = 0)

src/global.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
* @param int $depth User specified recursion depth.
1414
* @param int $options Bitmask of JSON decode options.
1515
*
16+
* @throws \ColinODell\Json5\SyntaxError if the JSON encoded string could not be parsed.
17+
*
1618
* @return mixed
1719
*/
1820
function json5_decode($source, $associative = false, $depth = 512, $options = 0)

0 commit comments

Comments
 (0)