thinkphp 5.0 在PHP8.0报错Method ReflectionParameter::getClass() is deprecated
今天用fastadmin 测试程序,在php8.0环境下报错 Method ReflectionParameter::geTCLass() is deprecated
通过排查:
修改 thinkphp 下的 \thinkPHP\library\think\APp.php 403 行
$class = $param->getClass();
//更换为
$class = $param->getType();
问题解决。
版权声明
本文仅代表作者观点,不代表本站立场。
本文系作者授权发表,未经许可,不得转载。
评论