webman
webman copied to clipboard
助手函数helpers.php 中locale方法在设置 $locale时应该是无返回的
/**
- Locale
- @param string|null $locale
- @return void */ function locale(string $locale = null) { if (!$locale) { return Translation::getLocale(); } Translation::setLocale($locale); }