diff --git a/composer.json b/composer.json index bf4fe1b..5b89dd8 100644 --- a/composer.json +++ b/composer.json @@ -11,7 +11,7 @@ "require": { "workerman/workerman": "^3.5.23", "workerman/gateway-worker": "^3.0.0", - "topthink/framework": "^6.0|^8.0", + "topthink/framework": "^8.0", "ext-fileinfo": "*" }, "autoload": { diff --git a/src/Application.php b/src/Application.php index cc46e9e..0259947 100644 --- a/src/Application.php +++ b/src/Application.php @@ -76,7 +76,7 @@ public function worker($connection) * 是否运行在命令行下 * @return bool */ - public function runningInConsole() + public function runningInConsole(): bool { return false; }