diff --git a/Client/PostcodeClient.php b/Client/PostcodeClient.php index 6159d37..c4efca3 100644 --- a/Client/PostcodeClient.php +++ b/Client/PostcodeClient.php @@ -1,6 +1,6 @@ +* (c) Wessel Strengholt * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. @@ -39,7 +39,7 @@ public function __construct($token) * * @return Address */ - public function fetchAddress($zipCode, $houseNumber) + public function fetchAddress($zipCode, $houseNumber): Address { if (0 === preg_match('/^[1-9]{1}[0-9]{3}[\s]{0,1}[a-z]{2}$/i', $zipCode)) { throw new InvalidPostcodeException('Given postcode incorrect'); diff --git a/Model/Address.php b/Model/Address.php index b92b27a..df370c0 100644 --- a/Model/Address.php +++ b/Model/Address.php @@ -95,7 +95,7 @@ public function getLatitude(): float /** * @param float $latitude */ - public function setLatitude(float $latitude) + public function setLatitude(float $latitude): void { $this->latitude = $latitude; } @@ -111,7 +111,7 @@ public function getLongitude(): float /** * @param float $longitude */ - public function setLongitude(float $longitude) + public function setLongitude(float $longitude): void { $this->longitude = $longitude; }