[64] ErrorException in Jump.php line 25
Cannot declare trait traits\controller\Jump, because the name is already in use
查看代码发现,controller中14行
\think\Loader::import('controller/Jump', TRAIT_PATH, EXT);
导入了trait,该导入方法import使用include实现文件加载,但是我在behavior中已经引入了trait文件,导致两次加载文件,所以爆出declare错误。
请问官方,这种问题我应该如何修改为好。
最佳答案