Closed 2ndGAB closed 7 years ago
Can you to checkout PR #109, which uses Guzzle6 internally and should be compatible with PHP70. Does the error persists?
Hello @Konafets,
Are you talking about guzzlehttp-services?
So do I have to specify "guzzlehttp/guzzle-services": "0.6.*"
in my composer.json?
Hi,
Are you talking about guzzlehttp-services? Yes.
Some background: The master branch of this repo defines Guzzle5 as a dependency (via GuzzleCommand). But none of these libs are compatible with PHP70, but Guzzle6 is. Unfortunately the master of GuzzleServices is not compatible with Guzzle6 but #109 fix this. See #89 for the whole discussion.
So do I have to specify "guzzlehttp/guzzle-services": "0.6.*" in my composer.json?
Unfortunately you can not use composer in this way here. You need to clone this repo via git and then apply the PR on this repo.
$ git clone git@github.com:guzzle/guzzle-services.git
$ git fetch origin pull/109/head:guzzle6-pr
$ git checkout guzzle6-pr
$ composer install
$ vendor/phpunit/phpunit/phpunit
This is just a workaround till we merge it with master and release a new version.
I fighted a bit with dependencies to be able to install guzzle, guzzle-services and guzzle-command which are depending on other module, along with some other ones.... I finally got everything. Unfortunately, it's not so easy to migrate to guzzle 6 as Event class desappeared so that suppose to modify the topmost module using guzzlehttp. So, I have to see that with the developper.... :-/
But that means that I cannot execute the code and see if the JSON Error is over.
You have to migrate your code to Guzzle6 as well. If you provide the code, maybe I can give you some hints. This would also an opportunity to collect some code snippets for a migration guide to help other devs.
@Konafets, I would have liked but as I'm not the code owner, I afraid to not be able to do that...
I will close the issue. Please update your environment to use version 1.0.0 of this library. If your problem still exists, feel free to reopen the issue.
@Konafets ok, thanks a lot
Hello, I recently installed your module which perfectly works with PHP5.6 on a new server running PHP7.0. And with the exact same set of datas, it causes an error with JSON objects:
Any idea?