From 4c173b9210b4d25642e2b16ed7eccf8758622fb1 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/DrawImage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Models/DrawImage.php b/Models/DrawImage.php index 5c05185..03009aa 100644 --- a/Models/DrawImage.php +++ b/Models/DrawImage.php @@ -124,7 +124,7 @@ class DrawImage implements ArrayableInterface, \JsonSerializable public function __toString() { - return \json_encode($this->toArray()); + return (string) \json_encode($this->toArray()); } public function jsonSerialize()