From c680dde7d34c3bf6d12c4b48ca452777c9dc2c0f Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 14 Jul 2018 18:43:34 +0200 Subject: [PATCH] Fix json_encode return type --- Models/EditorDoc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Models/EditorDoc.php b/Models/EditorDoc.php index 5a032f1..c9c85d2 100644 --- a/Models/EditorDoc.php +++ b/Models/EditorDoc.php @@ -235,7 +235,7 @@ class EditorDoc implements ArrayableInterface, \JsonSerializable public function __toString() { - return \json_encode($this->toArray()); + return (string) \json_encode($this->toArray()); } public function jsonSerialize()