Skip to content

Commit

Permalink
fix issue when get returns false
Browse files Browse the repository at this point in the history
  • Loading branch information
mkorkmaz committed Feb 28, 2019
1 parent 67ba7ae commit 464886b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ReJSON/Command/Get.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ private function __construct(
$this->arguments = [$key];
$this->arguments = array_merge($this->arguments, $paths);
$this->responseCallback = function ($result) {
return json_decode($result);
if ($result) {
return json_decode($result);
}
return null;
};
}

Expand Down

0 comments on commit 464886b

Please sign in to comment.