allansun/kubernetes-php-client

Call to undefined function GuzzleHttp\Psr7\modify_request

Closed this issue · 2 comments

Hi,

code

return $handler(Psr7\modify_request($request, $modify), $options);

update into

return $handler(Psr7\Utils::modifyRequest($request, $modify), $options);

:D

改好了, 这个代码是在依赖库 https://github.com/allansun/kubernetes-php-runtime 里的,太久以前写的了我还找了一下 😂

你直接在你自己的库里 composer update一下就应该好了。

可以运行 composer show kubernetes/php-runtime 确认一下,里面的 version 是 1.0.9 就对了。

非常感谢~