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 的依赖提升至 ^7.0 #54

Closed
feng-yifan opened this issue Jul 14, 2021 · 6 comments
Closed

可否将 GuzzleHttp 的依赖提升至 ^7.0 #54

feng-yifan opened this issue Jul 14, 2021 · 6 comments

Comments

@feng-yifan
Copy link

feng-yifan commented Jul 14, 2021

最新的 Laravel 8 对 GuzzleHttp 的依赖已经高过这个包的依赖了

image

Laravel 8 会给出如下错误

Call to undefined function GuzzleHttp\Psr7\hash() {"exception":"[object] (Error(code: 0): Call to undefined function GuzzleHttp\\Psr7\\hash() at /app/vendor/wechatpay/wechatpay-guzzle-middleware/src/Util/MediaUtil.php:91)
@feng-yifan
Copy link
Author

@tpirc3

@feng-yifan
Copy link
Author

目前手动将 Laravel 8 的 guzzlehttp/guzzle 依赖版本降级至 ^6.3 作为临时方案了

@xy-peng
Copy link
Contributor

xy-peng commented Jul 14, 2021

直接迁移到 wechatpay-php 呢?

@TheNorthMemory
Copy link
Contributor

Guzzle7上,废弃了 \GuzzleHttp\json_encode\GuzzleHttp\Psr7\hash 方法,分别被移动至 \GuzzleHttp\Utils::jsonEncodeGuzzleHttp\Psr7\Utils::hash 上, Laravel 8+ 建议直接用 wechatpay-php 包,测试用例覆盖环境从PHP7.2~8.0都有github actions覆盖,可以顺畅使用。

@feng-yifan
Copy link
Author

直接迁移到 wechatpay-php 呢?

好的, 之前没有留意到有这个包

@feng-yifan
Copy link
Author

Guzzle7上,废弃了 \GuzzleHttp\json_encode\GuzzleHttp\Psr7\hash 方法,分别被移动至 \GuzzleHttp\Utils::jsonEncodeGuzzleHttp\Psr7\Utils::hash 上, Laravel 8+ 建议直接用 wechatpay-php 包,测试用例覆盖环境从PHP7.2~8.0都有github actions覆盖,可以顺畅使用。

多谢!

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