From fa39ec077735bdf9f0adcde1fc12640bccd253ae Mon Sep 17 00:00:00 2001 From: caoyanyi Date: Thu, 5 Jun 2025 09:33:16 +0800 Subject: [PATCH] * [misc] Compatible with built-in json function parameters. --- framework/base/helper.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/base/helper.class.php b/framework/base/helper.class.php index f657339bb6..feed9cf0f6 100644 --- a/framework/base/helper.class.php +++ b/framework/base/helper.class.php @@ -1463,12 +1463,12 @@ if(!interface_exists('JsonSerializable')) public function jsonSerialize(); } - function json_encode($data) + function json_encode($data, $flags = 0, $depth = 512) { return $data; } - function json_decode($data) + function json_decode($data, $associative = null, $depth = 512, $flags = 0) { return $data; }