From 7f72cca02d2be974c885819cc5f4fefc02b63eb0 Mon Sep 17 00:00:00 2001 From: Meindert-Jan Kroese Date: Wed, 31 Aug 2022 14:58:39 +0200 Subject: [PATCH] allow null as second parameter for json_decode --- resources/functionMap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/functionMap.php b/resources/functionMap.php index 60bb9cea87..1aa6efbb61 100644 --- a/resources/functionMap.php +++ b/resources/functionMap.php @@ -5689,7 +5689,7 @@ 'join' => ['string', 'glue'=>'string', 'pieces'=>'array'], 'join\'1' => ['string', 'pieces'=>'array'], 'jpeg2wbmp' => ['bool', 'jpegname'=>'string', 'wbmpname'=>'string', 'dest_height'=>'int', 'dest_width'=>'int', 'threshold'=>'int'], -'json_decode' => ['mixed', 'json'=>'string', 'assoc='=>'bool', 'depth='=>'positive-int', 'options='=>'int'], +'json_decode' => ['mixed', 'json'=>'string', 'assoc='=>'bool|null', 'depth='=>'positive-int', 'options='=>'int'], 'json_encode' => ['string|false', 'data'=>'mixed', 'options='=>'int', 'depth='=>'positive-int'], 'json_last_error' => ['int'], 'json_last_error_msg' => ['string'],