This commit is contained in:
xl
2024-09-23 16:16:01 +08:00
parent fbd3799081
commit a0eb46cf4e
+2 -2
View File
@@ -28,14 +28,14 @@ interface Arrayable
}
if (!function_exists('json_validator')) {
if (!function_exists('json_validate')) {
/**
* @param string $data
* @return bool
*/
function json_validator(string $data): bool
function json_validate(string $data): bool
{
return is_array(json_decode($data, true));
}