Skip to content

Commit

Permalink
@todo catch errors from decode
Browse files Browse the repository at this point in the history
  • Loading branch information
attogram committed Apr 22, 2020
1 parent 5335de3 commit 3a4f26d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Topic.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ private function setDataFromCache()
return false;
}

$this->data = json_decode($this->data, true);
$this->data = json_decode($this->data, true); // @TODO catch errors from decode

return true;
}
Expand Down

0 comments on commit 3a4f26d

Please sign in to comment.