This commit is contained in:
2020-10-29 11:08:54 +08:00
parent 4f16747443
commit 996e20603c
+2 -2
View File
@@ -20,11 +20,11 @@ class JSON
{ {
/** /**
* @param string|array|mixed $data * @param $data
* @return false|string * @return false|string
* @throws Exception * @throws Exception
*/ */
public static function encode(string|array|object $data) public static function encode($data)
{ {
if (empty($data)) { if (empty($data)) {
return $data; return $data;