zhaohangyang / huoban_tools_php_composer1
There is no license information available for the latest version (v1.0.0) of this package.
zhaohangyang/huoban_composer_package_composer1
v1.0.0
2021-09-18 08:04 UTC
Requires
- guzzlehttp/guzzle: ~6.0
This package is not auto-updated.
Last update: 2024-11-10 21:41:53 UTC
README
huoban_tools_php
伙伴的 docker 环境限定版本 PHP7.0,guzzlehttp 高版本不兼容,所以高版本的使用需要做一些处理
1./vendor/guzzlehttp/guzzle/src/ClientInterface.php public function request($method, $uri, array $options = []);
替换为
public function request($method, $uri = null, array $options = []);
2./vendor/guzzlehttp/guzzle/src/ClientInterface.php if (count($this->handles) >= $this->maxHandles) {
替换为
if (is_array($this->handles) && count($this->handles) >= $this->maxHandles) {