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(); } }