diff --git a/support/helpers.php b/support/helpers.php index 950c5ed..a185ebb 100644 --- a/support/helpers.php +++ b/support/helpers.php @@ -22,6 +22,7 @@ use support\view\Blade; use support\view\ThinkPHP; use support\view\Twig; +use Workerman\Protocols\Http\Session; use Workerman\Worker; use Webman\App; use Webman\Config; @@ -297,7 +298,7 @@ function route(string $name, ...$parameters): string * Session * @param mixed $key * @param mixed $default - * @return mixed + * @return mixed|bool|Session */ function session($key = null, $default = null) {