Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

对doctrine/cache依赖的版本锁定 #867

Closed
medmin opened this issue Aug 13, 2017 · 0 comments
Closed

对doctrine/cache依赖的版本锁定 #867

medmin opened this issue Aug 13, 2017 · 0 comments

Comments

@medmin
Copy link

medmin commented Aug 13, 2017

我用的环境

PHP 版本:7.0.X
overtrue/wechat 版本:~3.1

问题及现象

描述你的问题现象,报错贴截图粘贴或者贴具体信息,提供必要的代码段

overtrue/wechat的composer.json里,对doctrine/cache的版本是^1.4,但doctrine/cache最新版已经是1.7.0,对PHP的要求是7.1,我的php是7.0.x, 所以安装失败

所以我只好在composer.json里把doctrine/cache的版本锁定在1.6.2,是这个repo目前可以 兼容php5.5和php7.0的最新版。

然后删除composer.lock,“composer install”重新生成了这个文件。

请PHP版本不是7.1的同学们注意了。

为什么会出现这个问题呢?我同伴的PHP是7.1,在他自己的机器上开发,一切OK的。我尚未升级PHP到7.1

建议easywechat里的composer.json把doctrine/cache的依赖锁定在1.6.2,这是目前能够兼容php5.5和php7.0的最新版本了。最新的1.7.0,最低要求php是7.1

overtrue added a commit that referenced this issue Aug 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants