From 3a4f26dd323b3644fa4e48d0d498b63373e32f03 Mon Sep 17 00:00:00 2001 From: Attogram Project Date: Wed, 22 Apr 2020 10:09:40 +0200 Subject: [PATCH] @TODO catch errors from decode --- src/Topic.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Topic.php b/src/Topic.php index fad970d..71dc752 100644 --- a/src/Topic.php +++ b/src/Topic.php @@ -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; }