feat: 升级 ThinkPHP 8 与 PHP 8.2+ 兼容性

升级框架及稳定依赖,修复路由、鉴权、种子、动态属性和 PHP 8.5 弃用问题。

固化 ThinkCaptcha 和 ORM 的 PHP 8.5 兼容补丁;Composer 安装会自动应用并由 patches.lock.json 锁定。

验证:45 条迁移、依赖校验与安全审计、验证码 PNG 响应及关键页面/API 回归通过。
This commit is contained in:
biss committed 2026-10-04 14:07:24 +08:00
1 parent 36e37a3b8b
commit 454d9d32c4
2058 files changed
+151120 -132566

No files matched your search

+8
View File
@@ -25,6 +25,14 @@ abstract class BaseController
*/
protected $app;
/**
* View renderer shared by all application controllers.
*
* Declaring this property keeps the ThinkPHP 6 controller convention
* compatible with PHP 8.2+, which no longer permits dynamic properties.
*/
protected $view;
/**
* 是否批量验证