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

guzzlehttp/guzzle > 7.0报错 #4

Open
zhusaidong opened this issue Sep 28, 2020 · 3 comments
Open

guzzlehttp/guzzle > 7.0报错 #4

zhusaidong opened this issue Sep 28, 2020 · 3 comments

Comments

@zhusaidong
Copy link

zhusaidong commented Sep 28, 2020

7.0中改成了\GuzzleHttp\Client::MAJOR_VERSION
所以代码中使用了\GuzzleHttp\Client::VERSION。就报错了。

composer中的配置"guzzlehttp/guzzle": ">=6.0.0"会自动升级到7.0以上。
应该用"guzzlehttp/guzzle": "^6.0.0"

@itMuYou
Copy link

itMuYou commented Dec 15, 2020

刚刚升级了 也发现这个问题了

@itMuYou
Copy link

itMuYou commented Dec 15, 2020

我得解决方法是执行 composer require “guzzlehttp/guzzle:^6.0.0” 供大家参考

@uyson
Copy link

uyson commented Sep 13, 2023

同样问题, 最近版本不兼容guzzle 7 版本, 希望兼容一下

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

3 participants