Compare commits

...

2 Commits

Author SHA1 Message Date
as2252258 3fc1b16f33 eee 2024-04-15 15:39:31 +08:00
as2252258 103b757a05 eee 2024-04-15 15:39:03 +08:00
+1 -1
View File
@@ -37,7 +37,7 @@ if (!function_exists('json_validator')) {
*/
function json_validator(string $data): bool
{
return is_null(json_decode($data));
return is_array(json_decode($data, true));
}
}