From 1823c98f30576fa6edebc406c51482dab96e3c6a 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/DrawImage.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Models/DrawImage.php b/Models/DrawImage.php index eb2b6b4..1527409 100644 --- a/Models/DrawImage.php +++ b/Models/DrawImage.php @@ -136,12 +136,12 @@ class DrawImage 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(); } public static function fromMedia(Media $media)