File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -283,7 +283,7 @@ public static function jsonDecode($input)
283
283
$ obj = json_decode ($ json_without_bigints );
284
284
}
285
285
286
- if (function_exists ( ' json_last_error ' ) && $ errno = json_last_error ()) {
286
+ if ($ errno = json_last_error ()) {
287
287
static ::handleJsonError ($ errno );
288
288
} elseif ($ obj === null && $ input !== 'null ' ) {
289
289
throw new DomainException ('Null result with non-null input ' );
@@ -303,7 +303,7 @@ public static function jsonDecode($input)
303
303
public static function jsonEncode ($ input )
304
304
{
305
305
$ json = json_encode ($ input );
306
- if (function_exists ( ' json_last_error ' ) && $ errno = json_last_error ()) {
306
+ if ($ errno = json_last_error ()) {
307
307
static ::handleJsonError ($ errno );
308
308
} elseif ($ json === 'null ' && $ input !== null ) {
309
309
throw new DomainException ('Null result with non-null input ' );
You can’t perform that action at this time.
0 commit comments