From f413967297f96f0f25d939906a7a6d23602bf0a1 Mon Sep 17 00:00:00 2001 From: Awilum Date: Wed, 29 May 2019 01:10:39 +0300 Subject: [PATCH] Slim Framework integration #118 #117 - JsonParser: fixes and refactoring --- flextype/parsers/JsonParser.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flextype/parsers/JsonParser.php b/flextype/parsers/JsonParser.php index 2addae06..ec32e205 100644 --- a/flextype/parsers/JsonParser.php +++ b/flextype/parsers/JsonParser.php @@ -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