diff --git a/beike/Helpers.php b/beike/Helpers.php index 0493b921..4c943a26 100644 --- a/beike/Helpers.php +++ b/beike/Helpers.php @@ -195,9 +195,12 @@ function locale(): string * 货币格式化 * * @param $price + * @param string $currency + * @param string $value + * @param bool $format * @return string */ -function currency_format($price, $currency = '', $value = '', $format = true): string +function currency_format($price, string $currency = '', string $value = '', bool $format = true): string { if (!$currency) { $currency = Session::get('currency') ?? system_setting('base.currency');