mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-12 03:05:34 +08:00
fix code to phpstan-level-2
This commit is contained in:
@@ -58,11 +58,9 @@ class HttpUtil
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $uri
|
||||
* @param Response|\Swoole\Http\Response $response
|
||||
* @return bool
|
||||
* @param Response|\Swoole\Http\Response $response
|
||||
*/
|
||||
public static function handleStaticPage($uri, $response, array $settings = [])
|
||||
public static function handleStaticPage(string $uri, $response, array $settings = []): bool
|
||||
{
|
||||
$base_dir = $settings['document_root'] ?? ZMConfig::get('global', 'static_file_server')['document_root'];
|
||||
$base_index = $settings['document_index'] ?? ZMConfig::get('global', 'static_file_server')['document_index'];
|
||||
|
||||
Reference in New Issue
Block a user