Please bump the guzzle version to something not broken on php 7.1
Thank you
There is a possibility that this is a PHP 7.1 bug since the same error is reported by various PHP applications.
Update 31-12-16: It is in fact not a PHP 7.1 bug. I thought that since this behavior is not documented in the backwards incompatibility page at php.net .. The PHP team will update the relevant documentation there in near future..
This is not a bug of php 7.1. This is bug of very old deprecated guzzle library
Are you using Guzzle 5.3 on PHP 7.1? As you can see from composer.json, this library supports the current version of guzzle. Guzzle 5.3 is only available for backwards compatibility.
How is it that Guzzle 5.3 came to be installed instead of Guzzle 6? It could be another package requires guzzle 5.3. Try adding guzzle 6 explicitly to your composer.json:
composer require "guzzlehttp/guzzle:^6.0"
Not using composer, downloaded a release but we are no longer using the library so no longer involved in fixing the bug, sorry.
For others encountering this issue, @SerafimArts and @acrolink can you provide more information on how you installed this library and if the above command fixes the issue?
It's also possible your project contains a composer.lock file set to the previous version. In this case, run the following command to update all dependencies to the latest versions:
composer update
@bshaffer this is side effect of other library. Just close this issue, its not a problem of google-api-vk-client ;)
This has been fixed by bumping the minimum required version of Guzzle to 5.3.1.
I was still having this because guzzle was installed globally at 5.3.0; updating the global guzzle (or deleting it) fixed for me, took a while to figure out =)
Most helpful comment
Are you using Guzzle 5.3 on PHP 7.1? As you can see from composer.json, this library supports the current version of guzzle. Guzzle 5.3 is only available for backwards compatibility.
How is it that Guzzle 5.3 came to be installed instead of Guzzle 6? It could be another package requires guzzle 5.3. Try adding guzzle 6 explicitly to your
composer.json: