升级框架版本,PHP最低要求8.2

This commit is contained in:
net909
2026-07-28 21:24:51 +08:00
parent 4826b8c758
commit 8ef3e2e802
16 changed files with 1083 additions and 353 deletions
+7 -2
View File
@@ -8,9 +8,14 @@
// +----------------------------------------------------------------------
// | Author: liu21st <[email protected]>
// +----------------------------------------------------------------------
// [ 应用入口文件 ]
namespace think;
use think\App;
if (version_compare(PHP_VERSION, '8.0.0', '<')) {
die('require PHP >= 8.0 !');
}
// [ 应用入口文件 ]
require __DIR__ . '/../vendor/autoload.php';
// 执行HTTP应用并响应