From a5c49463f686dd10ab5984050adbd0b798d384d7 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/NewsArticle.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Models/NewsArticle.php b/Models/NewsArticle.php index 89dcd07..81cc429 100644 --- a/Models/NewsArticle.php +++ b/Models/NewsArticle.php @@ -335,7 +335,7 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable * * @param string $title News article title * - * @return mixed + * @return void * * @since 1.0.0 */ @@ -452,7 +452,7 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable */ public function __toString() { - return \json_encode($this->toArray()); + return (string) \json_encode($this->toArray()); } /**