Skip to content

Commit 9409375

Browse files
committed
fixed 5.3 syntax
1 parent e45338d commit 9409375

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Qiniu/functions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,13 @@ function base64_urlSafeDecode($str)
5151
*/
5252
function json_decode($json, $assoc = false, $depth = 512, $options = 0)
5353
{
54-
static $jsonErrors = [
54+
static $jsonErrors = array(
5555
JSON_ERROR_DEPTH => 'JSON_ERROR_DEPTH - Maximum stack depth exceeded',
5656
JSON_ERROR_STATE_MISMATCH => 'JSON_ERROR_STATE_MISMATCH - Underflow or the modes mismatch',
5757
JSON_ERROR_CTRL_CHAR => 'JSON_ERROR_CTRL_CHAR - Unexpected control character found',
5858
JSON_ERROR_SYNTAX => 'JSON_ERROR_SYNTAX - Syntax error, malformed JSON',
5959
JSON_ERROR_UTF8 => 'JSON_ERROR_UTF8 - Malformed UTF-8 characters, possibly incorrectly encoded'
60-
];
60+
);
6161

6262
$data = \json_decode($json, $assoc, $depth, $options);
6363

0 commit comments

Comments
 (0)