From b8bbe5437095b0e119c731709adfe645d355fe26 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/EditorDoc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Models/EditorDoc.php b/Models/EditorDoc.php index dd21139..32daf0a 100644 --- a/Models/EditorDoc.php +++ b/Models/EditorDoc.php @@ -265,11 +265,11 @@ class EditorDoc 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(); } }