diff --git a/support/helpers.php b/support/helpers.php index 7853f9f..0bbba80 100644 --- a/support/helpers.php +++ b/support/helpers.php @@ -50,12 +50,12 @@ function run_path(string $path = ''): string /** * if the param $path equal false,will return this program current execute directory - * @param string|false $path + * @param string $path * @return string */ -function base_path($path = ''): string +function base_path(string $path = ''): string { - if (false === $path) { + if (empty($path)) { return \run_path(); } return \path_combine(BASE_PATH, $path);