top-think/think

composer 升级项目以后 报错 Call to a member function connect( ) on null

Tihhx opened this issue · 2 comments

Tihhx commented

QQ图片20220425091039
image

Tihhx commented

image

升级后,注意.env环境变量配置文件的值不能有双引号。
top-think/framework v6.0.10 后,环境变量的值被双引号括起来,连引号也会被读取出来。
你这个问题很大可能就是引号括起来了一些链接造成的。
在.env文件中,把所有带引号的值,去掉引号即可。