Skip to content

Commit

Permalink
助手函数调整
Browse files Browse the repository at this point in the history
  • Loading branch information
liu21st committed Oct 15, 2024
1 parent 4c7881c commit 1ca27f4
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -662,11 +662,3 @@ function root_path($path = '')
return app()->getRootPath() . ($path ? $path . DIRECTORY_SEPARATOR : $path);
}
}

if (!function_exists('json_validate')) {
function json_validate(string $string): bool {
json_decode($string);

return json_last_error() === JSON_ERROR_NONE;
}
}

0 comments on commit 1ca27f4

Please sign in to comment.