-
Notifications
You must be signed in to change notification settings - Fork 321
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
10 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
95e41e7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yo @srmklive im not the "best practices guy", but
is not used anymore, Guzzle in new versions do not support json decode in response
as you can see here:
https://github.com/guzzle/guzzle/blob/5.3/src/Message/Response.php#L138
https://github.com/guzzle/psr7/blob/master/src/Response.php
maybe its good refactor that, for any composer problem with old versions of guzzle =p
if u want i can help with it, but its just use the json_decode() from Php lib.
cya!
95e41e7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dann95
json_encode
is actually available in the latest versions ... https://github.com/guzzle/guzzle/blob/master/src/functions.php95e41e7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@srmklive as a helper, not anymore as api. Before you just call like $res->json(); but now guzzle follows the PSR-7 interface, and is not responsability of the "client" decode information. Was just a comment.
cya 👍 😄
95e41e7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dann95 I know that 😄. But if you can come up with a solution for it as per your original comment. That will be great 👍
95e41e7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @srmklive my friend! 😄 , i try alaways help this repo, you are alaways so polite 😄