发布于 2018-08-13 18:14:01
Guzzle的数组方法定义是get(string|UriInterface $uri, array $options = []),并且您将get作为$uri传递,这在这里是不允许的。你必须自己构建uri,因为guzzle不会为你做这件事。
正确的代码块应该是这样的(如果projectId是一个整数):
$result = self::$client->get(sprintf('project/%d', $projectId));
https://stackoverflow.com/questions/51819710
复制相似问题