Revert "json encode/decode throws JsonException when JSON_THROW_ON_ERROR is set"

This commit is contained in:
Maxim Kolmakov 2019-07-10 13:39:41 +02:00 committed by GitHub
parent 3d7ea0792e
commit a228765608
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

@ -86,7 +86,6 @@ class JsonIncrementalParser {
* Set the maximum depth. Must be greater than zero.
* </p>
* @return string|false a JSON encoded string on success or <b>FALSE</b> on failure.
* @throws \JsonException exception is thrown when {@see JSON_THROW_ON_ERROR} is set and $value can't be encoded
*/
function json_encode ($value, $options = 0, $depth = 512) {}
@ -124,7 +123,6 @@ function json_encode ($value, $options = 0, $depth = 512) {}
* and <b>NULL</b> respectively. <b>NULL</b> is returned if the
* <i>json</i> cannot be decoded or if the encoded
* data is deeper than the recursion limit.
* @throws \JsonException exception is thrown when {@see JSON_THROW_ON_ERROR} is set and $json can't be decoded
*/
function json_decode ($json, $assoc = false, $depth = 512, $options = 0) {}