Skip to content

Commit f4013f8

Browse files
committed
Correcting the bigint fix to produce objects rather than associative arrays in php versions < 5.4.0.
1 parent 565b2c6 commit f4013f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Authentication/JWT.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public static function jsonDecode($input)
137137
*/
138138
$max_int_length = strlen((string) PHP_INT_MAX) - 1;
139139
$json_without_bigints = preg_replace('/:\s*(\d{'.$max_int_length.',})/', ': "$1"', $input);
140-
$obj = json_decode($json_without_bigints, true);
140+
$obj = json_decode($json_without_bigints);
141141
}
142142

143143
if (function_exists('json_last_error') && $errno = json_last_error()) {

0 commit comments

Comments
 (0)