From fce9ad82bab1bc0bee26b14d8d093984653e03f9 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Thu, 12 Jul 2018 20:28:13 +0200 Subject: [PATCH] Handle invalid type asignment --- Account/Account.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Account/Account.php b/Account/Account.php index 35fa37898..2cba85883 100644 --- a/Account/Account.php +++ b/Account/Account.php @@ -605,7 +605,7 @@ class Account implements ArrayableInterface, \JsonSerializable */ public function __toString() : string { - return \json_encode($this->toArray()); + return (string) \json_encode($this->toArray()); } /**