From 4233dc9be48300a52061b90ec865f2b86ec9f6b4 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 22 Jan 2017 21:21:03 +0100 Subject: [PATCH] Return type fixes --- Datatypes/Address.php | 2 +- Datatypes/Location.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(); }