Response.php : validate json check should check if really false
This commit is contained in:
parent
bd64c79d5a
commit
c66f00cc33
2 changed files with 3 additions and 2 deletions
|
|
@ -2,7 +2,8 @@
|
|||
|
||||
### All notable changes to `CRM CLient V2` will be documented in this file.
|
||||
|
||||
Fixed : request merge method of data to query (Request.php)
|
||||
- Fixed : request merge method of data to query (Request.php)
|
||||
- Fixed : validate json check should check if really false (Response.php)
|
||||
|
||||
# version 3.0.2
|
||||
- Regen documentation with php documentor
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ class Response
|
|||
}
|
||||
|
||||
// * Body should be json data.
|
||||
if (!($decodedJson = $this->tryDecodeJson($this->body->getContents()))) {
|
||||
if (($decodedJson = $this->tryDecodeJson($this->body->getContents())) === false) {
|
||||
if (Utils::getConfig('app.env') === 'testing') {
|
||||
dump((string)$this->body);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue