模型初始化报错

浏览:482 发布日期:2019/04/25 分类:ThinkPHP6专区 关键字: 模型init
<?php
namespace app\index\model;

use think\Model;

class User extends Model
{
// 模型初始化
protected static function init()
{

}
}
错误提示:
Declaration of app\index\model\User::init() must be compatible with think\Model::init(): void
最佳答案
评论( 相关
后面还有条评论,点击查看>>