From 3c75662633672a0f478e83c5f1a614785d2ab312 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 22 Jan 2017 21:08:46 +0100 Subject: [PATCH] Fixing json serialization and reporter --- Models/NewsArticle.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Models/NewsArticle.php b/Models/NewsArticle.php index b8db842..c8b4e02 100644 --- a/Models/NewsArticle.php +++ b/Models/NewsArticle.php @@ -414,11 +414,11 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable public function __toString() { - return $this->jsonSerialize(); + return json_encode($this->toArray()); } public function jsonSerialize() { - return json_encode($this->toArray()); + return $this->toArray(); } }