ThinkPHP执行数据迁移时出错问题

执行数据迁移相关命令时报 Fatal error: Class ‘think\facade\Env’ not found 错误,是版本问题,可在 composer.json文件内 require 下边的 topthink/think-migration 版本 改为1.0 在执行 composer update,在执行命令时依然报错

  [think\exception\ErrorException]
  implode(): Passing glue string after array is deprecated. Swap the parameters

是因为 implode 的参数写错了,修改 vendor/topthink/think-migration/phinx/src/Phinx/Util/Util.php 文件的109行,将 implode($arr, ‘_’) 这个修改为 implode(‘_’,$arr) 后就可以了。

原创文章,作者:admin,如若转载,请注明出处:https://ntib.cn/303.html

(0)
adminadmin
上一篇 2023年11月19日 下午9:56
下一篇 2023年11月21日 上午1:27

相关推荐

发表回复

登录后才能评论
WeChat