diff --git a/Datatypes/Address.php b/Datatypes/Address.php index 5592e4a99..7ef8db125 100644 --- a/Datatypes/Address.php +++ b/Datatypes/Address.php @@ -151,7 +151,7 @@ class Address implements \JsonSerializable /** * {@inheritdoc} */ - public function jsonSerialize(int $option = 0) : string + public function jsonSerialize(int $option = 0) { return $this->toArray(); } diff --git a/Datatypes/Location.php b/Datatypes/Location.php index 05067b1fb..c5a8e17a8 100644 --- a/Datatypes/Location.php +++ b/Datatypes/Location.php @@ -245,7 +245,7 @@ class Location implements \JsonSerializable, \Serializable /** * {@inheritdoc} */ - public function jsonSerialize() : string + public function jsonSerialize() { return $this->toArray(); }