1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-31 08:45:22 +02:00

Slim Framework integration #118 #117

- JsonParser: fixes and refactoring
This commit is contained in:
Awilum
2019-05-29 01:10:39 +03:00
parent acb363fe34
commit f413967297

View File

@@ -68,7 +68,7 @@ class JsonParser {
*
* @param mixed $input A string containing JSON
* @param int $encode_depth User specified recursion depth.
* @param bool $encode_options Bitmask consisting of encode options.
* @param int $encode_options Bitmask consisting of encode options.
* @return mixed The JSON converted to a PHP value
*
*/
@@ -93,9 +93,9 @@ class JsonParser {
* $array = JsonParser::decode($json_file_content);
*
* @param string $input A string containing JSON
* @param int $decode_assoc When TRUE, returned objects will be converted into associative arrays.
* @param bool $decode_assoc When TRUE, returned objects will be converted into associative arrays.
* @param int $decode_depth User specified recursion depth.
* @param bool $decode_options Bitmask consisting of decode options.
* @param int $decode_options Bitmask consisting of decode options.
* @return mixed The JSON converted to a PHP value
*
* @throws ParseException If the JSON is not valid