Response.php : validate json check should check if really false

This commit is contained in:
Jérémy Munsch 2022-03-30 16:50:26 +02:00
parent bd64c79d5a
commit c66f00cc33
No known key found for this signature in database
GPG key ID: 55196BEE445F6049
2 changed files with 3 additions and 2 deletions

View file

@ -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

View file

@ -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);
}