wechatpay-apiv3 / wechatpay-php

微信支付 APIv3 的官方 PHP Library,同时也支持 APIv2
Apache License 2.0
475 stars 98 forks source link

UriTemplate guzzle 版本<7.0存在, >=7.0没有UriTemplate,导致报错 #113

Closed halx99 closed 1 year ago

halx99 commented 1 year ago

运行环境

- OS:Windows 11
- PHP:7.4.33
- wechatpay-php:master/1.4.8

描述你的问题现象

两个问题:

  1. guzzle库 >=7.0没有UriTemplate,导致报错
  2. ClientDecorator.php request和requestAsync里报错,尝试以静态方式调用UriTemplate的对象方法expand

问题复现:readme里下载证书代码

相关链接

TheNorthMemory commented 1 year ago

在你的项目下,执行一下composer info命令,应能打印出类似如下依赖:

guzzlehttp/uri-template            v1.0.1  A polyfill class for uri_template of PHP

对应的项目是: https://github.com/guzzle/uri-template

halx99 commented 1 year ago

在你的项目下,执行一下composer info命令,应能打印出类似如下依赖:

guzzlehttp/uri-template            v1.0.1  A polyfill class for uri_template of PHP

对应的项目是: https://github.com/guzzle/uri-template

谢谢,解决了。